aboutsummaryrefslogtreecommitdiff
path: root/target-alpha/op_helper.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2011-04-27 09:22:52 -0700
committerRichard Henderson <rth@twiddle.net>2011-10-08 08:49:09 -0700
commit034ebc2753e7d16879a91e4407c4e0706f63604e (patch)
tree2295fa229575afd9aeb071e29db3354f47f62cce /target-alpha/op_helper.c
parentbc24270e6471fb916a3816de9e63c31474392739 (diff)
downloadqemu-034ebc2753e7d16879a91e4407c4e0706f63604e.zip
qemu-034ebc2753e7d16879a91e4407c4e0706f63604e.tar.gz
qemu-034ebc2753e7d16879a91e4407c4e0706f63604e.tar.bz2
target-alpha: Implement HALT IPR.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'target-alpha/op_helper.c')
-rw-r--r--target-alpha/op_helper.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/target-alpha/op_helper.c b/target-alpha/op_helper.c
index d8945dc..1896ab8 100644
--- a/target-alpha/op_helper.c
+++ b/target-alpha/op_helper.c
@@ -22,6 +22,7 @@
#include "host-utils.h"
#include "softfloat.h"
#include "helper.h"
+#include "sysemu.h"
#include "qemu-timer.h"
#define FP_STATUS (env->fp_status)
@@ -1218,6 +1219,15 @@ void helper_tbis(uint64_t p)
{
tlb_flush_page(env, p);
}
+
+void helper_halt(uint64_t restart)
+{
+ if (restart) {
+ qemu_system_reset_request();
+ } else {
+ qemu_system_shutdown_request();
+ }
+}
#endif
/*****************************************************************************/