Re: [PATCH v3 7/8] sparc/sun4m: Use start-powered-off CPUState property

2020-07-27 Thread Philippe Mathieu-Daudé
On 7/23/20 4:56 AM, Thiago Jung Bauermann wrote: > Instead of setting CPUState::halted to 1 in secondary_cpu_reset(), use the > start-powered-off property which makes cpu_common_reset() initialize it > to 1 in common code. > > This makes secondary_cpu_reset() unnecessary, so remove it. > > Also

Re: [PATCH v3 7/8] sparc/sun4m: Use start-powered-off CPUState property

2020-07-22 Thread David Gibson
On Wed, Jul 22, 2020 at 11:56:56PM -0300, Thiago Jung Bauermann wrote: > Instead of setting CPUState::halted to 1 in secondary_cpu_reset(), use the > start-powered-off property which makes cpu_common_reset() initialize it > to 1 in common code. > > This makes secondary_cpu_reset() unnecessary, so

[PATCH v3 7/8] sparc/sun4m: Use start-powered-off CPUState property

2020-07-22 Thread Thiago Jung Bauermann
Instead of setting CPUState::halted to 1 in secondary_cpu_reset(), use the start-powered-off property which makes cpu_common_reset() initialize it to 1 in common code. This makes secondary_cpu_reset() unnecessary, so remove it. Also remove setting of cs->halted from cpu_devinit(), which seems