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:
Yongbok Kim 2018-07-03 00:57:47 -04:00 committed by Lioncash
parent 872be901d4
commit a246bdb5b3
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -20878,6 +20878,11 @@ 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} */
env->hflags |= MIPS_HFLAG_M16;
}
/* MSA */
if (env->CP0_Config3 & (1 << CP0C3_MSAP)) {
msa_reset(env);