On 6/20/25 10:27, Philippe Mathieu-Daudé wrote:
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> accel/split/split-all.c | 13 ++++++++++++-
> 1 file changed, 12 insertions(+), 1 deletion(-)
>
> diff --git a/accel/split/split-all.c b/accel/split/split-all.c
> index 6bc95c7a7c8..c86d0e8583a 100644
> --- a/accel/split/split-all.c
> +++ b/accel/split/split-all.c
> @@ -30,7 +30,18 @@ static bool split_has_memory(MachineState *ms, AddressSpace *as,
>
> static bool split_cpus_are_resettable(AccelState *as)
> {
> - g_assert_not_reached();
> + SplitAccelState *sas = SPLIT_ACCEL(as);
> + AccelClass *hwc = ACCEL_GET_CLASS(sas->hw);
> + AccelClass *swc = ACCEL_GET_CLASS(sas->sw);
> + bool rv = false;
> +
> + if (hwc->cpus_are_resettable) {
> + rv |= hwc->cpus_are_resettable(sas->hw);
> + }
> + if (swc->cpus_are_resettable) {
> + rv |= swc->cpus_are_resettable(sas->sw);
> + }
> + return rv;
> }
>
> static bool split_supports_guest_debug(AccelState *as)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~