Skip to contentSkip to conversation

[6015] target-sh4: don't disable FPU instructions in user mode

Qemu-devel Aurelien Jarno 1 participant 1 message Dec 13, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 6015

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6015
Author:   aurel32
Date:     2008-12-13 19:27:14 +0000 (Sat, 13 Dec 2008)

Log Message:
-----------
target-sh4: don't disable FPU instructions in user mode

Based on a patch from Lionel Landwerlin.

Modified Paths:
--------------
trunk/target-sh4/translate.c

Modified: trunk/target-sh4/translate.c
===================================================================

target-sh4/translate.c +1 -1
@@ -185,7 +185,7 @@
 static void cpu_sh4_reset(CPUSH4State * env)
 {
 #if defined(CONFIG_USER_ONLY)
-    env->sr = SR_FD;            /* FD - kernel does lazy fpu context switch */
+    env->sr = 0;
 #else
     env->sr = 0x700000F0;	/* MD, RB, BL, I3-I0 */
 #endif