mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-26 09:56:55 +00:00
target/mips: Fix microMIPS on reset
Fix to activate microMIPS on reset when Config3.ISA == {1, 3} Backports commit 0305d194be1dbda09fa7a7c883894030d07c355f from qemu
This commit is contained in:
parent
872be901d4
commit
a246bdb5b3
|
@ -20878,6 +20878,11 @@ void cpu_state_reset(CPUMIPSState *env)
|
||||||
env->CP0_Status |= (1 << CP0St_FR);
|
env->CP0_Status |= (1 << CP0St_FR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (env->CP0_Config3 & (1 << CP0C3_ISA)) {
|
||||||
|
/* microMIPS on reset when Config3.ISA == {1, 3} */
|
||||||
|
env->hflags |= MIPS_HFLAG_M16;
|
||||||
|
}
|
||||||
|
|
||||||
/* MSA */
|
/* MSA */
|
||||||
if (env->CP0_Config3 & (1 << CP0C3_MSAP)) {
|
if (env->CP0_Config3 & (1 << CP0C3_MSAP)) {
|
||||||
msa_reset(env);
|
msa_reset(env);
|
||||||
|
|
Loading…
Reference in a new issue