pseries: Fix breakage in CPU QOM conversion
commita4e044c30e0044947fd0d69b1888d916f96bba6b
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 14 Mar 2013 17:59:29 +0000 (14 17:59 +0000)
committerAlexander Graf <agraf@suse.de>
Fri, 22 Mar 2013 14:28:45 +0000 (22 15:28 +0100)
tree9e2460c3bc6c684b0946c35a351858b2ff5941c6
parentafed26082219b49443193b4ac32d113bbcf967fd
pseries: Fix breakage in CPU QOM conversion

Commit 259186a7d2f7184efc96ae99bc5658e6159f53ad "cpu: Move halted and
interrupt_request fields to CPUState" broke the pseries machine.  That's
because it uses CPU() instead of ENV_GET_CPU() to convert from the global
first_cpu pointer (still a CPUArchState) to a CPUState.  This patch fixes
the breakage.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/ppc/spapr.c