On Tue, 17 Feb 2026 at 06:35, Akihiko Odaki
<[email protected]> wrote:
>
> alpha_cpu_realizefn() did not properly call cpu_reset(), which
> corrupted icount. Add the missing function call to fix icount.
>
> Signed-off-by: Akihiko Odaki <[email protected]>
> ---
>  target/alpha/cpu.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/target/alpha/cpu.c b/target/alpha/cpu.c
> index 1780db7d1e29..74281ebdb367 100644
> --- a/target/alpha/cpu.c
> +++ b/target/alpha/cpu.c
> @@ -124,6 +124,7 @@ static void alpha_cpu_realizefn(DeviceState *dev, Error 
> **errp)
>      }
>
>      qemu_init_vcpu(cs);
> +    cpu_reset(cs);
>
>      acc->parent_realize(dev, errp);
>  }

Realize functions shouldn't call reset on themselves.
For CPU objects it is currently the responsibility of the
board code to arrange that the CPU objects get reset.

thanks
-- PMM

Reply via email to