summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--target-sparc/translate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index cb11b928f6..34a3357f97 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -90,7 +90,7 @@ enum {
 #ifdef TARGET_SPARC64
 #define DFPREG(r) (((r & 1) << 6) | (r & 0x1e))
 #else
-#define DFPREG(r) (r)
+#define DFPREG(r) (r & 0x1e)
 #endif
 
 #ifdef USE_DIRECT_JUMP