mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-03-23 02:55:06 +00:00
target-mips: Don't stop on [d]mtc0 DESAVE/KScratch
Writing to the MIPS DESAVE register (and now the KScratch registers) will stop translation, supposedly due to risk of execution mode switches. However these registers are basically RW scratch registers with no side effects so there is no risk of them triggering execution mode changes. Drop the bstate = BS_STOP for these registers for both mtc0 and dmtc0. Backports commit cb539fd241900f51de7d21244f7a55422ad0d40a from qemu
This commit is contained in:
parent
567bc68803
commit
987401c4d4
|
@ -6472,8 +6472,6 @@ static void gen_mtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
default:
|
||||
goto cp0_unimplemented;
|
||||
}
|
||||
/* Stop translation as we may have switched the execution mode */
|
||||
ctx->bstate = BS_STOP;
|
||||
break;
|
||||
default:
|
||||
goto cp0_unimplemented;
|
||||
|
@ -7798,8 +7796,6 @@ static void gen_dmtc0(DisasContext *ctx, TCGv arg, int reg, int sel)
|
|||
default:
|
||||
goto cp0_unimplemented;
|
||||
}
|
||||
/* Stop translation as we may have switched the execution mode */
|
||||
ctx->bstate = BS_STOP;
|
||||
break;
|
||||
default:
|
||||
goto cp0_unimplemented;
|
||||
|
|
Loading…
Reference in a new issue