Commit c19dbb94 authored by ths's avatar ths
Browse files

Fix crash in set registers in PPC gdb-stub, by Jason Wessel.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3079 c046a42c-6fe2-441c-8c8c-71466251a162
parent 4cae1d16
......@@ -1493,10 +1493,12 @@ void do_store_msr (CPUPPCState *env, target_ulong value)
break;
}
if (enter_pm) {
/* power save: exit cpu loop */
env->halted = 1;
env->exception_index = EXCP_HLT;
cpu_loop_exit();
if (likely(!env->halted)) {
/* power save: exit cpu loop */
env->halted = 1;
env->exception_index = EXCP_HLT;
cpu_loop_exit();
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment