tcg/sparc: Only one call output register needed for 64 bit hosts
authorStefan Weil <weil@mail.berlios.de>
Mon, 5 Sep 2011 09:07:01 +0000 (11:07 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 17 Sep 2011 17:55:30 +0000 (17:55 +0000)
The second register is only needed for 32 bit hosts.

Cc: Blue Swirl <blauwirbel@gmail.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
tcg/sparc/tcg-target.c

index ac76e1198dd3a5845caa23dd5a365c7521e9fd32..fc3fd7ffceddfd9889a3bf6acf79e44d98ab467b 100644 (file)
@@ -84,9 +84,11 @@ static const int tcg_target_call_iarg_regs[6] = {
     TCG_REG_O5,
 };
 
-static const int tcg_target_call_oarg_regs[2] = {
+static const int tcg_target_call_oarg_regs[] = {
     TCG_REG_O0,
-    TCG_REG_O1,
+#if TCG_TARGET_REG_BITS == 32
+    TCG_REG_O1
+#endif
 };
 
 static inline int check_fit_tl(tcg_target_long val, unsigned int bits)