Commit 1b6e5f990641796dc7c370e297a60bfcdb6ca62d

Authored by aurel32
1 parent e9203484

target-ppc: fix wrteei instruction

Patch by Andrew May

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6308 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
target-ppc/translate.c
@@ -6077,7 +6077,7 @@ GEN_HANDLER(wrteei, 0x1F, 0x03, 0x05, 0x000EFC01, PPC_WRTEE) @@ -6077,7 +6077,7 @@ GEN_HANDLER(wrteei, 0x1F, 0x03, 0x05, 0x000EFC01, PPC_WRTEE)
6077 /* Stop translation to have a chance to raise an exception */ 6077 /* Stop translation to have a chance to raise an exception */
6078 gen_stop_exception(ctx); 6078 gen_stop_exception(ctx);
6079 } else { 6079 } else {
6080 - tcg_gen_andi_tl(cpu_msr, cpu_msr, (1 << MSR_EE)); 6080 + tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE));
6081 } 6081 }
6082 #endif 6082 #endif
6083 } 6083 }