aboutsummaryrefslogtreecommitdiff
path: root/target-mips/op_helper.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 15:22:34 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-07-02 15:22:34 +0000
commit90b37806ba1a09b77dc6245ac34dabbceba555df (patch)
tree33846f45e4394a69aa056c3a26a612b5da64d270 /target-mips/op_helper.c
parent0699b548399936ed24b110e3e1f82cc80adbdfd9 (diff)
fixed C0 status codes (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1473 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-mips/op_helper.c')
-rw-r--r--target-mips/op_helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-mips/op_helper.c b/target-mips/op_helper.c
index 854abea0c7..bdfe7d057c 100644
--- a/target-mips/op_helper.c
+++ b/target-mips/op_helper.c
@@ -174,11 +174,11 @@ void do_mfc0 (int reg, int sel)
case 12:
T0 = env->CP0_Status;
if (env->hflags & MIPS_HFLAG_UM)
- T0 |= CP0St_UM;
+ T0 |= (1 << CP0St_UM);
if (env->hflags & MIPS_HFLAG_ERL)
- T0 |= CP0St_ERL;
+ T0 |= (1 << CP0St_ERL);
if (env->hflags & MIPS_HFLAG_EXL)
- T0 |= CP0St_EXL;
+ T0 |= (1 << CP0St_EXL);
rn = "Status";
break;
case 13: