Commit 56cd2b96636641af4f2fc5be968cc6901f99a17a
1 parent
f3ff7fac
target-sh4: make the initial value of SR easier to read
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6016 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
5 additions
and
1 deletions
target-sh4/cpu.h
target-sh4/translate.c
... | ... | @@ -187,7 +187,7 @@ static void cpu_sh4_reset(CPUSH4State * env) |
187 | 187 | #if defined(CONFIG_USER_ONLY) |
188 | 188 | env->sr = 0; |
189 | 189 | #else |
190 | - env->sr = 0x700000F0; /* MD, RB, BL, I3-I0 */ | |
190 | + env->sr = SR_MD | SR_RB | SR_BL | SR_I3 | SR_I2 | SR_I1 | SR_I0; | |
191 | 191 | #endif |
192 | 192 | env->vbr = 0; |
193 | 193 | env->pc = 0xA0000000; | ... | ... |