diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-23 22:05:28 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2005-11-23 22:05:28 +0000 |
commit | e80e1cc4b18d388227d2fa6b8551929a381d2490 (patch) | |
tree | ffa318af5e2d0019e5f47dc26b70a3f0f64ecf94 /target-ppc/helper.c | |
parent | f24e5695e5fab2d4d143c34ffe8164ddeac9b12b (diff) |
halt state support for ppc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1657 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc/helper.c')
-rw-r--r-- | target-ppc/helper.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target-ppc/helper.c b/target-ppc/helper.c index c3b02d8cc7..ff1355c541 100644 --- a/target-ppc/helper.c +++ b/target-ppc/helper.c @@ -846,6 +846,11 @@ void do_store_msr (CPUPPCState *env, target_ulong value) msr_ri = (value >> MSR_RI) & 1; msr_le = (value >> MSR_LE) & 1; do_compute_hflags(env); + if (msr_pow) { + /* power save: exit cpu loop */ + env->exception_index = EXCP_HLT; + cpu_loop_exit(); + } } float64 do_load_fpscr (CPUPPCState *env) |