aboutsummaryrefslogtreecommitdiff
path: root/target-arm/op.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-26 10:46:39 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-26 10:46:39 +0000
commit9332f9dafa33b085488a5369333213d549dbdc7f (patch)
tree4f1cfad1613e5ccfd798a7406ead9601310e8f41 /target-arm/op.c
parente8ebb8a8d7d10bd04eab9ae8ad3da707d178a02d (diff)
ARM CPU suspend/halt (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1663 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-arm/op.c')
-rw-r--r--target-arm/op.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/target-arm/op.c b/target-arm/op.c
index 09449f28e4..35419a1b71 100644
--- a/target-arm/op.c
+++ b/target-arm/op.c
@@ -878,6 +878,13 @@ void OPPROTO op_debug(void)
cpu_loop_exit();
}
+void OPPROTO op_wfi(void)
+{
+ env->exception_index = EXCP_HLT;
+ env->halted = 1;
+ cpu_loop_exit();
+}
+
/* VFP support. We follow the convention used for VFP instrunctions:
Single precition routines have a "s" suffix, double precision a
"d" suffix. */