mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
halt state support for ppc
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1657 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
f24e5695e5
commit
e80e1cc4b1
4 changed files with 21 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue