]> git.proxmox.com Git - qemu.git/blobdiff - target-sparc/helper.c
SPARC LEON power-down support added
[qemu.git] / target-sparc / helper.c
index 91ecfc7aa85d9e559a4a81f275a0a61a98969ad7..58e7efe567221472118f2e780e218f79bad8ec5f 100644 (file)
@@ -225,3 +225,14 @@ target_ulong helper_tsubcctv(CPUSPARCState *env, target_ulong src1,
     cpu_restore_state(env, GETPC());
     helper_raise_exception(env, TT_TOVF);
 }
+
+#ifndef TARGET_SPARC64
+void helper_power_down(CPUSPARCState *env)
+{
+    env->halted = 1;
+    env->exception_index = EXCP_HLT;
+    env->pc = env->npc;
+    env->npc = env->pc + 4;
+    cpu_loop_exit(env);
+}
+#endif