aboutsummaryrefslogtreecommitdiff
path: root/target-sh4
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-22 10:12:54 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-06-22 10:12:54 +0000
commit4c909d14c26bcdc1f62f2d6943bf640381f6b0dc (patch)
tree21d3a979c7f6c4c9aa341b1492c9521e6248f23f /target-sh4
parentd10927f86bd2458fd154fc5a8b529d7e54846c14 (diff)
downloadqemu-4c909d14c26bcdc1f62f2d6943bf640381f6b0dc.zip
qemu-4c909d14c26bcdc1f62f2d6943bf640381f6b0dc.tar.gz
qemu-4c909d14c26bcdc1f62f2d6943bf640381f6b0dc.tar.bz2
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
Diffstat (limited to 'target-sh4')
-rw-r--r--target-sh4/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sh4/translate.c b/target-sh4/translate.c
index c70288e..40d7266 100644
--- a/target-sh4/translate.c
+++ b/target-sh4/translate.c
@@ -125,7 +125,7 @@ void cpu_dump_state(CPUState * env, FILE * f,
void cpu_sh4_reset(CPUSH4State * env)
{
#if defined(CONFIG_USER_ONLY)
- env->sr = 0x00000000;
+ env->sr = SR_FD; /* FD - kernel does lazy fpu context switch */
#else
env->sr = 0x700000F0; /* MD, RB, BL, I3-I0 */
#endif