summaryrefslogtreecommitdiffstats
path: root/target/s390x/cpu.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann2020-08-26 07:55:35 +0200
committerDavid Gibson2020-09-08 02:08:43 +0200
commit86c5e6aba6c08a81986fc8c82bfce477288ede48 (patch)
treefbcb402412577b978390ebdcb37cf55b3f1befdb /target/s390x/cpu.c
parentsparc/sun4m: Use start-powered-off CPUState property (diff)
downloadqemu-86c5e6aba6c08a81986fc8c82bfce477288ede48.tar.gz
qemu-86c5e6aba6c08a81986fc8c82bfce477288ede48.tar.xz
qemu-86c5e6aba6c08a81986fc8c82bfce477288ede48.zip
target/s390x: Use start-powered-off CPUState property
Instead of setting CPUState::halted to 1 in s390_cpu_initfn(), use the start-powered-off property which makes cpu_common_reset() initialize it to 1 in common code. Note that this changes behavior by setting cs->halted to 1 on reset, which didn't happen before. Acked-by: Cornelia Huck <cohuck@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Thiago Jung Bauermann <bauerman@linux.ibm.com> Message-Id: <20200826055535.951207-9-bauerman@linux.ibm.com> [dwg: Fix from Laurent Vivier for user only case] Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'target/s390x/cpu.c')
-rw-r--r--target/s390x/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/cpu.c b/target/s390x/cpu.c
index 08eb674d22..749cd548f0 100644
--- a/target/s390x/cpu.c
+++ b/target/s390x/cpu.c
@@ -291,9 +291,9 @@ static void s390_cpu_initfn(Object *obj)
S390CPU *cpu = S390_CPU(obj);
cpu_set_cpustate_pointers(cpu);
- cs->halted = 1;
cs->exception_index = EXCP_HLT;
#if !defined(CONFIG_USER_ONLY)
+ cs->start_powered_off = true;
object_property_add(obj, "crash-information", "GuestPanicInformation",
s390_cpu_get_crash_info_qom, NULL, NULL, NULL);
cpu->env.tod_timer =