summaryrefslogtreecommitdiffstats
path: root/target-sparc/cpu.h
diff options
context:
space:
mode:
authorblueswir12007-03-24 14:24:09 +0100
committerblueswir12007-03-24 14:24:09 +0100
commit3e736bf4b42fdb19920d348dcd8a1e7c0a0233ca (patch)
tree5642c9ec6cf7c3c5bda01866c8be149337b59b00 /target-sparc/cpu.h
parentSparc tagged operations (Aurelien Jarno) (diff)
downloadqemu-3e736bf4b42fdb19920d348dcd8a1e7c0a0233ca.tar.gz
qemu-3e736bf4b42fdb19920d348dcd8a1e7c0a0233ca.tar.xz
qemu-3e736bf4b42fdb19920d348dcd8a1e7c0a0233ca.zip
Upgrade Sparc FPU version (based on patch by Aurelien Jarno)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2532 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/cpu.h')
-rw-r--r--target-sparc/cpu.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/target-sparc/cpu.h b/target-sparc/cpu.h
index 60189a6096..3e8d71c204 100644
--- a/target-sparc/cpu.h
+++ b/target-sparc/cpu.h
@@ -238,8 +238,8 @@ typedef struct CPUSPARCState {
(0 << 24) | (MAXTL << 8) | (NWINDOWS - 1))
#else
#define GET_FSR32(env) (env->fsr)
-#define PUT_FSR32(env, val) do { uint32_t _tmp = val; \
- env->fsr = _tmp & 0xcfc1ffff; \
+#define PUT_FSR32(env, val) do { uint32_t _tmp = val; \
+ env->fsr = (_tmp & 0xcfc1ffff) | (env->fsr & 0x000e0000); \
} while (0)
#endif