Commit 90b37806ba1a09b77dc6245ac34dabbceba555df
1 parent
0699b548
fixed C0 status codes (Ralf Baechle)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1473 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
target-mips/op_helper.c
| ... | ... | @@ -174,11 +174,11 @@ void do_mfc0 (int reg, int sel) |
| 174 | 174 | case 12: |
| 175 | 175 | T0 = env->CP0_Status; |
| 176 | 176 | if (env->hflags & MIPS_HFLAG_UM) |
| 177 | - T0 |= CP0St_UM; | |
| 177 | + T0 |= (1 << CP0St_UM); | |
| 178 | 178 | if (env->hflags & MIPS_HFLAG_ERL) |
| 179 | - T0 |= CP0St_ERL; | |
| 179 | + T0 |= (1 << CP0St_ERL); | |
| 180 | 180 | if (env->hflags & MIPS_HFLAG_EXL) |
| 181 | - T0 |= CP0St_EXL; | |
| 181 | + T0 |= (1 << CP0St_EXL); | |
| 182 | 182 | rn = "Status"; |
| 183 | 183 | break; |
| 184 | 184 | case 13: | ... | ... |