target/s390x: Use start-powered-off CPUState property
authorThiago Jung Bauermann <bauerman@linux.ibm.com>
Wed, 26 Aug 2020 05:55:35 +0000 (02:55 -0300)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 8 Sep 2020 00:08:43 +0000 (10:08 +1000)
commit86c5e6aba6c08a81986fc8c82bfce477288ede48
treefbcb402412577b978390ebdcb37cf55b3f1befdb
parent24f675cd3b1406f3af9f9b811bb6946d0e2e6ecf
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>
target/s390x/cpu.c