Commit cd7dd10f09a66b0e356f7164850f9270268c0a94
1 parent
76e050c2
MIPS CP0 not usable in kernel mode (Stefan Weil)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1829 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-mips/translate.c
... | ... | @@ -1180,7 +1180,7 @@ static void gen_cp0 (DisasContext *ctx, uint16_t opc, int rt, int rd) |
1180 | 1180 | const unsigned char *opn = "unk"; |
1181 | 1181 | |
1182 | 1182 | if (!(ctx->CP0_Status & (1 << CP0St_CU0)) && |
1183 | - !(ctx->hflags & MIPS_HFLAG_UM) && | |
1183 | + (ctx->hflags & MIPS_HFLAG_UM) && | |
1184 | 1184 | !(ctx->hflags & MIPS_HFLAG_ERL) && |
1185 | 1185 | !(ctx->hflags & MIPS_HFLAG_EXL)) { |
1186 | 1186 | if (loglevel & CPU_LOG_TB_IN_ASM) { | ... | ... |