diff --git a/target-ppc/translate.c b/target-ppc/translate.c index 0cfcc0872d2b8b13689ef8e9a7785976e527ea4f..8a9922804ef59eea438e0953d18f65ddbeddf06f 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -6077,7 +6077,7 @@ GEN_HANDLER(wrteei, 0x1F, 0x03, 0x05, 0x000EFC01, PPC_WRTEE) /* 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 }