Skip to content

Commit

Permalink
target/mips: Fix microMIPS on reset
Browse files Browse the repository at this point in the history
Fix to activate microMIPS on reset when Config3.ISA == {1, 3}

Signed-off-by: Yongbok Kim <yongbok.kim@mips.com>
Reviewed-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
Signed-off-by: Aleksandar Markovic <aleksandar.markovic@mips.com>
  • Loading branch information
yongbok authored and AMarkovic committed Jun 27, 2018
1 parent f48a2cb commit 0305d19
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions target/mips/translate.c
Expand Up @@ -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);
Expand Down

0 comments on commit 0305d19

Please sign in to comment.