Commit 0305d194 authored by Yongbok Kim's avatar Yongbok Kim Committed by Aleksandar Markovic
Browse files

target/mips: Fix microMIPS on reset



Fix to activate microMIPS on reset when Config3.ISA == {1, 3}

Signed-off-by: default avatarYongbok Kim <yongbok.kim@mips.com>
Reviewed-by: default avatarAleksandar Markovic <aleksandar.markovic@mips.com>
Signed-off-by: default avatarAleksandar Markovic <aleksandar.markovic@mips.com>
parent f48a2cb2
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -20713,6 +20713,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);