target-mips: Don't stop on [d]mtc0 DESAVE/KScratch
authorJames Hogan <james.hogan@imgtec.com>
Mon, 31 Jul 2017 13:36:45 +0000 (14:36 +0100)
committerYongbok Kim <yongbok.kim@imgtec.com>
Wed, 2 Aug 2017 16:01:27 +0000 (17:01 +0100)
commitcb539fd241900f51de7d21244f7a55422ad0d40a
tree23aaedd50316634e5cd0cacc90e009caf0d8a025
parentaaaec6acad7cf97372d48c1b09126a09697519c8
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.

Fixes: 7a387fffce50 ("Add MIPS32R2 instructions, and generally straighten out the instruction decoding. This is also the first percent towards MIPS64 support.")
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Aurelien Jarno <aurelien@aurel32.net>
Cc: Yongbok Kim <yongbok.kim@imgtec.com>
Reviewed-by: Yongbok Kim <yongbok.kim@imgtec.com>
Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
target/mips/translate.c