From 847290419c0a7ceda40368f6b3892e80b9d3ba38 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 23 Apr 2006 15:21:24 +0000 Subject: [PATCH] MIPS CP0 not usable in kernel mode (Stefan Weil) --- target-mips/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-mips/translate.c b/target-mips/translate.c index 418a7afa..fd1faf14 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) { -- 2.39.5