spapr_rtas: Abstract rtas_start_cpu() with qemu_get_cpu()
authorAndreas Färber <afaerber@suse.de>
Wed, 29 May 2013 19:06:39 +0000 (21:06 +0200)
committerAndreas Färber <afaerber@suse.de>
Wed, 12 Jun 2013 22:11:14 +0000 (00:11 +0200)
commitc67e216bdf42abfb8505790b2da9562356103976
tree06af864365509e242de2170bfeca6a0f4617bcd6
parent05318a858c1212d845d03f924e6ab5f22ab51ab6
spapr_rtas: Abstract rtas_start_cpu() with qemu_get_cpu()

Instead of looping over all CPUArchState, use a helper to obtain the
desired CPUState.
Free the "cpu" variable for PowerPCCPU, to access its CPUPPCState.

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