diff --git a/target-sh4/cpu.h b/target-sh4/cpu.h index ec4aacedac638e34fbc7df65f21f34100cf30a8b..226417f34c09b378d33921872df03eaca1e48faa 100644 --- a/target-sh4/cpu.h +++ b/target-sh4/cpu.h @@ -49,6 +49,10 @@ #define SR_FD (1 << 15) #define SR_M (1 << 9) #define SR_Q (1 << 8) +#define SR_I3 (1 << 7) +#define SR_I2 (1 << 6) +#define SR_I1 (1 << 5) +#define SR_I0 (1 << 4) #define SR_S (1 << 1) #define SR_T (1 << 0) diff --git a/target-sh4/translate.c b/target-sh4/translate.c index 2ff7590560d5c2bdc1b1e349ae89bb98f320d67b..2d3981c2af90b1e513aca7481164a8446a4002e8 100644 --- a/target-sh4/translate.c +++ b/target-sh4/translate.c @@ -187,7 +187,7 @@ static void cpu_sh4_reset(CPUSH4State * env) #if defined(CONFIG_USER_ONLY) env->sr = 0; #else - env->sr = 0x700000F0; /* MD, RB, BL, I3-I0 */ + env->sr = SR_MD | SR_RB | SR_BL | SR_I3 | SR_I2 | SR_I1 | SR_I0; #endif env->vbr = 0; env->pc = 0xA0000000;