spapr_rtas: Abstract rtas_query_cpu_stopped_state() with qemu_get_cpu()
commit05318a858c1212d845d03f924e6ab5f22ab51ab6
authorAndreas Färber <afaerber@suse.de>
Wed, 29 May 2013 19:03:31 +0000 (29 21:03 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 12 Jun 2013 21:43:26 +0000 (12 23:43 +0200)
tree23c1ef0d000306ac321a287ca2e205a93029f708
parent11ed09cf0753c1288a97f00138fc4534135442bb
spapr_rtas: Abstract rtas_query_cpu_stopped_state() with qemu_get_cpu()

Instead of looping over all CPUArchState, use a helper to obtain the
desired CPUState directly. Saves a CPUPPCState variable and QOM cast.

Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/ppc/spapr_rtas.c