]> git.proxmox.com Git - mirror_qemu.git/commitdiff
cpu-exec: Use cpu_reset() in cpu_exec() for TARGET_PPC
authorAndreas Färber <afaerber@suse.de>
Fri, 4 May 2012 17:39:23 +0000 (19:39 +0200)
committerAndreas Färber <afaerber@suse.de>
Mon, 4 Jun 2012 21:00:45 +0000 (23:00 +0200)
CPUState will be needed for all targets in the future, so place it into
the main variable declaration block.

Signed-off-by: Andreas Färber <afaerber@suse.de>
Acked-by: Alexander Graf <agraf@suse.de>
cpu-exec.c

index fbb39cbea9b4ab1c5f8ec48b495c7cb8b56cf4db..83cac932ed16c5da0f6359943c061983d4720450 100644 (file)
@@ -184,6 +184,9 @@ volatile sig_atomic_t exit_request;
 
 int cpu_exec(CPUArchState *env)
 {
+#ifdef TARGET_PPC
+    CPUState *cpu = ENV_GET_CPU(env);
+#endif
     int ret, interrupt_request;
     TranslationBlock *tb;
     uint8_t *tc_ptr;
@@ -341,7 +344,7 @@ int cpu_exec(CPUArchState *env)
                     }
 #elif defined(TARGET_PPC)
                     if ((interrupt_request & CPU_INTERRUPT_RESET)) {
-                        cpu_state_reset(env);
+                        cpu_reset(cpu);
                     }
                     if (interrupt_request & CPU_INTERRUPT_HARD) {
                         ppc_hw_interrupt(env);