summaryrefslogtreecommitdiffstats
path: root/target-sparc/helper.c
diff options
context:
space:
mode:
authorRonald Hecht <ronald.hecht@gmx.de>2013-02-19 12:45:07 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-02-23 10:00:43 +0000
commitd1c36ba707637173b818652e51181370d51b6c58 (patch)
tree43480b6285574c951391d9557ce53debe409a441 /target-sparc/helper.c
parent7a0a9c2c64be242d5953d5ce6172976b05f6c14f (diff)
downloadhqemu-d1c36ba707637173b818652e51181370d51b6c58.zip
hqemu-d1c36ba707637173b818652e51181370d51b6c58.tar.gz
SPARC LEON power-down support added
Signed-off-by: Ronald Hecht <address@hidden> Signed-off-by: Fabien Chouteau <chouteau@adacore.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'target-sparc/helper.c')
-rw-r--r--target-sparc/helper.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/target-sparc/helper.c b/target-sparc/helper.c
index 91ecfc7..58e7efe 100644
--- a/target-sparc/helper.c
+++ b/target-sparc/helper.c
@@ -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
OpenPOWER on IntegriCloud