Re: [PATCH 2/2] cpu: Assert a vCPU is created before resetting it

2020-03-09 Thread Philippe Mathieu-Daudé
On 3/9/20 2:10 PM, Peter Maydell wrote: On Mon, 9 Mar 2020 at 12:11, Philippe Mathieu-Daudé wrote: cpu_reset() might modify architecture-specific fields allocated by qemu_init_vcpu(). To avoid bugs similar to the one fixed in commit 00d0f7cb66 when introducing new architectures, assert a vCPU

Re: [PATCH 2/2] cpu: Assert a vCPU is created before resetting it

2020-03-09 Thread Peter Maydell
On Mon, 9 Mar 2020 at 12:11, Philippe Mathieu-Daudé wrote: > > cpu_reset() might modify architecture-specific fields allocated > by qemu_init_vcpu(). To avoid bugs similar to the one fixed in > commit 00d0f7cb66 when introducing new architectures, assert a > vCPU is created before resetting it. >

[PATCH 2/2] cpu: Assert a vCPU is created before resetting it

2020-03-09 Thread Philippe Mathieu-Daudé
cpu_reset() might modify architecture-specific fields allocated by qemu_init_vcpu(). To avoid bugs similar to the one fixed in commit 00d0f7cb66 when introducing new architectures, assert a vCPU is created before resetting it. Signed-off-by: Philippe Mathieu-Daudé --- hw/core/cpu.c | 1 + 1 file