OSDN Git Service

mips: Correct IntCtl write mask for VInt
authorEdgar E. Iglesias <edgar.iglesias@gmail.com>
Mon, 29 Aug 2011 21:07:35 +0000 (23:07 +0200)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 6 Sep 2011 09:09:38 +0000 (11:09 +0200)
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-mips/op_helper.c

index e7868bf..03a4f18 100644 (file)
@@ -1542,7 +1542,7 @@ void helper_mttc0_status(target_ulong arg1)
 void helper_mtc0_intctl (target_ulong arg1)
 {
     /* vectored interrupts not implemented, no performance counters. */
-    env->CP0_IntCtl = (env->CP0_IntCtl & ~0x000002e0) | (arg1 & 0x000002e0);
+    env->CP0_IntCtl = (env->CP0_IntCtl & ~0x000003e0) | (arg1 & 0x000003e0);
 }
 
 void helper_mtc0_srsctl (target_ulong arg1)