mirror of https://github.com/xqemu/xqemu.git
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
This commit is contained in:
parent
f3ff7facf5
commit
56cd2b9663
|
@ -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)
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue