Patchwork [v4,11/18] tcg-arm: Use R12 for the tcg temporary

login
register
mail settings
Submitter Richard Henderson
Date March 30, 2013, 8:43 p.m.
Message ID <1364676207-21516-12-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/232573/
State New
Headers show

Comments

Richard Henderson - March 30, 2013, 8:43 p.m.
R12 is call clobbered, while R8 is call saved.  This change
gives tcg one more call saved register for real data.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 tcg/arm/tcg-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/tcg/arm/tcg-target.c b/tcg/arm/tcg-target.c
index 32ed9f2..b3ed436 100644
--- a/tcg/arm/tcg-target.c
+++ b/tcg/arm/tcg-target.c
@@ -113,7 +113,7 @@  static const int tcg_target_call_oarg_regs[2] = {
     TCG_REG_R0, TCG_REG_R1
 };
 
-#define TCG_REG_TMP  TCG_REG_R8
+#define TCG_REG_TMP  TCG_REG_R12
 
 static inline void reloc_abs32(void *code_ptr, tcg_target_long target)
 {