mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 20:19:44 +00:00
target/mips: Prevent switching mode related to Config3 ISA bit for nanoMIPS
Only if Config3.ISA is 3 (microMIPS), the mode should be switched in cpu_state_reset(). Config3.ISA is 1 for nanoMIPS processors, and no mode change should happen. Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
This commit is contained in:
parent
b3979b6fc3
commit
0bbc039680
@ -21841,8 +21841,8 @@ void cpu_state_reset(CPUMIPSState *env)
|
||||
env->CP0_Status |= (1 << CP0St_FR);
|
||||
}
|
||||
|
||||
if (env->CP0_Config3 & (1 << CP0C3_ISA)) {
|
||||
/* microMIPS on reset when Config3.ISA == {1, 3} */
|
||||
if (env->CP0_Config3 & (1 << CP0C3_ISA) & (1 << (CP0C3_ISA + 1))) {
|
||||
/* microMIPS on reset when Config3.ISA is 3 */
|
||||
env->hflags |= MIPS_HFLAG_M16;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user