aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/exec.h
diff options
context:
space:
mode:
Diffstat (limited to 'target-ppc/exec.h')
-rw-r--r--target-ppc/exec.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/target-ppc/exec.h b/target-ppc/exec.h
index ee5183eb72..69807ad5e7 100644
--- a/target-ppc/exec.h
+++ b/target-ppc/exec.h
@@ -43,15 +43,15 @@ register unsigned long T1 asm(AREG2);
register unsigned long T2 asm(AREG3);
#endif
/* We may, sometime, need 64 bits registers on 32 bits target */
-#if defined(TARGET_PPC64) || defined(TARGET_PPCEMB) || (HOST_LONG_BITS == 64)
-#define T0_64 T0
-#define T1_64 T1
-#define T2_64 T2
-#else
+#if TARGET_GPR_BITS > HOST_LONG_BITS
/* no registers can be used */
#define T0_64 (env->t0)
#define T1_64 (env->t1)
#define T2_64 (env->t2)
+#else
+#define T0_64 T0
+#define T1_64 T1
+#define T2_64 T2
#endif
/* Provision for Altivec */
#define T0_avr (env->t0_avr)