[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH v2 7/9] sparc/sun4m: Don't set CPUState::halted in cpu_de
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [RFC PATCH v2 7/9] sparc/sun4m: Don't set CPUState::halted in cpu_devinit() |
Date: |
Wed, 22 Jul 2020 09:02:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 |
On 7/22/20 5:50 AM, Thiago Jung Bauermann wrote:
> Remove setting of cs->halted from cpu_devinit(), which seems out of place
> when compared to similar code in other architectures (e.g., ppce500_init()
> in hw/ppc/e500.c).
>
> Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com>
> ---
> hw/sparc/sun4m.c | 1 -
> 1 file changed, 1 deletion(-)
>
> NB: I was only able to test that this patch builds. I wasn't able to
> run it.
>
> diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c
> index 766e79bb5e..7b3042a801 100644
> --- a/hw/sparc/sun4m.c
> +++ b/hw/sparc/sun4m.c
> @@ -831,7 +831,6 @@ static void cpu_devinit(const char *cpu_type, unsigned
> int id,
> } else {
> qemu_register_reset(secondary_cpu_reset, cpu);
> cs = CPU(cpu);
> - cs->halted = 1;
> object_property_set_bool(OBJECT(cs), "start-powered-off", true,
> &error_abort);
> }
>
Why not squash with previous patch?
- [PATCH v2 4/9] ppc/e500: Use start-powered-off CPUState property, (continued)
- [PATCH v2 4/9] ppc/e500: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/07/22
- [PATCH v2 5/9] mips/cps: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/07/22
- [PATCH v2 6/9] sparc/sun4m: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/07/22
- [RFC PATCH v2 7/9] sparc/sun4m: Don't set CPUState::halted in cpu_devinit(), Thiago Jung Bauermann, 2020/07/22
- Re: [RFC PATCH v2 7/9] sparc/sun4m: Don't set CPUState::halted in cpu_devinit(),
Philippe Mathieu-Daudé <=
- [RFC PATCH v2 8/9] sparc/sun4m: Use one cpu_reset() function for main and secondary CPUs, Thiago Jung Bauermann, 2020/07/22
- [RFC PATCH v2 9/9] target/s390x: Use start-powered-off CPUState property, Thiago Jung Bauermann, 2020/07/22