diff --git a/target-mips/translate.c b/target-mips/translate.c index 418a7afa035da791425d6164844b24c0ef8c9fb6..fd1faf1499f6df866c4cba1c5dd4e03cdca5509b 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1180,7 +1180,7 @@ static void gen_cp0 (DisasContext *ctx, uint16_t opc, int rt, int rd) const unsigned char *opn = "unk"; if (!(ctx->CP0_Status & (1 << CP0St_CU0)) && - !(ctx->hflags & MIPS_HFLAG_UM) && + (ctx->hflags & MIPS_HFLAG_UM) && !(ctx->hflags & MIPS_HFLAG_ERL) && !(ctx->hflags & MIPS_HFLAG_EXL)) { if (loglevel & CPU_LOG_TB_IN_ASM) {