Skip to contentSkip to conversation

[6308] target-ppc: fix wrteei instruction

Qemu-devel Aurelien Jarno 1 participant 1 message Jan 14, 2009

lore
Share & tools
lore
#0 lore raw

Revision: 6308

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6308
Author:   aurel32
Date:     2009-01-14 19:40:54 +0000 (Wed, 14 Jan 2009)

Log Message:
-----------
target-ppc: fix wrteei instruction

Patch by Andrew May

Modified Paths:
--------------
trunk/target-ppc/translate.c

Modified: trunk/target-ppc/translate.c
===================================================================

target-ppc/translate.c +1 -1
@@ -6077,7 +6077,7 @@
         /* Stop translation to have a chance to raise an exception */
         gen_stop_exception(ctx);
     } else {
-        tcg_gen_andi_tl(cpu_msr, cpu_msr, (1 << MSR_EE));
+        tcg_gen_andi_tl(cpu_msr, cpu_msr, ~(1 << MSR_EE));
     }
 #endif
 }