]> Git Repo - qemu.git/commit
ppc/e500: Use start-powered-off CPUState property
authorThiago Jung Bauermann <[email protected]>
Wed, 26 Aug 2020 05:55:31 +0000 (02:55 -0300)
committerDavid Gibson <[email protected]>
Tue, 8 Sep 2020 00:08:43 +0000 (10:08 +1000)
commita2c93f06cf63c29448f60285b7e103bc07cf014b
tree528f418e39d29f13a25ea0ff07fd459c79d8c80b
parent554c2169e9251ca2829ab968bd9ba5641a5abe1d
ppc/e500: Use start-powered-off CPUState property

Instead of setting CPUState::halted to 1 in ppce500_cpu_reset_sec(), use
the start-powered-off property which makes cpu_common_reset() initialize it
to 1 in common code.

Also change creation of CPU object from cpu_create() to object_new() and
qdev_realize_and_unref() because cpu_create() realizes the CPU and it's not
possible to set a property after the object is realized.

Signed-off-by: Thiago Jung Bauermann <[email protected]>
Message-Id: <20200826055535[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: David Gibson <[email protected]>
hw/ppc/e500.c
This page took 0.02512 seconds and 4 git commands to generate.