Commit 4c909d14c26bcdc1f62f2d6943bf640381f6b0dc
1 parent
d10927f8
Set FD bit in SR to emulate kernel behaviour, by Magnus Damm.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2999 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
1 additions
and
1 deletions
target-sh4/translate.c
@@ -125,7 +125,7 @@ void cpu_dump_state(CPUState * env, FILE * f, | @@ -125,7 +125,7 @@ void cpu_dump_state(CPUState * env, FILE * f, | ||
125 | void cpu_sh4_reset(CPUSH4State * env) | 125 | void cpu_sh4_reset(CPUSH4State * env) |
126 | { | 126 | { |
127 | #if defined(CONFIG_USER_ONLY) | 127 | #if defined(CONFIG_USER_ONLY) |
128 | - env->sr = 0x00000000; | 128 | + env->sr = SR_FD; /* FD - kernel does lazy fpu context switch */ |
129 | #else | 129 | #else |
130 | env->sr = 0x700000F0; /* MD, RB, BL, I3-I0 */ | 130 | env->sr = 0x700000F0; /* MD, RB, BL, I3-I0 */ |
131 | #endif | 131 | #endif |