* [Qemu-devel] [patch 1/1] target-ppc/translate.c: wrteei fixup
@ 2009-07-01 13:10 Baojun Wang
0 siblings, 0 replies; only message in thread
From: Baojun Wang @ 2009-07-01 13:10 UTC (permalink / raw)
To: qemu-devel
the E bit in wrteei is bit 15 in LSB, or 16 in MSB.
--- qemu-0.10.5.old/target-ppc/translate.c 2009-05-21
04:47:01.000000000 +0800
+++ qemu-0.10.5.new/target-ppc/translate.c 2009-07-01
21:06:13.000000000 +0800
@@ -6069,7 +6069,7 @@ GEN_HANDLER(wrtee, 0x1F, 0x03, 0x04, 0x0
}
/* wrteei */
-GEN_HANDLER(wrteei, 0x1F, 0x03, 0x05, 0x000EFC01, PPC_WRTEE)
+GEN_HANDLER(wrteei, 0x1F, 0x03, 0x05, 0x000E7C01, PPC_WRTEE)
{
#if defined(CONFIG_USER_ONLY)
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
@@ -6078,7 +6078,7 @@ GEN_HANDLER(wrteei, 0x1F, 0x03, 0x05, 0x
gen_inval_exception(ctx, POWERPC_EXCP_PRIV_OPC);
return;
}
- if (ctx->opcode & 0x00010000) {
+ if (ctx->opcode & 0x00008000) {
tcg_gen_ori_tl(cpu_msr, cpu_msr, (1 << MSR_EE));
/* Stop translation to have a chance to raise an exception */
gen_stop_exception(ctx);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-07-01 13:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-01 13:10 [Qemu-devel] [patch 1/1] target-ppc/translate.c: wrteei fixup Baojun Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).