aboutsummaryrefslogtreecommitdiff
path: root/tcg/ia64/tcg-target.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-09-05 14:45:54 -0400
committerRichard Henderson <rth@twiddle.net>2013-11-18 15:57:08 +1000
commitd15de15ca01fa990544b015fb972f2d04ab4d2d0 (patch)
treeabaa5d16999f184dae6fa7c53f72e53a7c7c670b /tcg/ia64/tcg-target.h
parent6d264b38fcc267b68df2890b22d27bc404878c8c (diff)
downloadqemu-d15de15ca01fa990544b015fb972f2d04ab4d2d0.zip
qemu-d15de15ca01fa990544b015fb972f2d04ab4d2d0.tar.gz
qemu-d15de15ca01fa990544b015fb972f2d04ab4d2d0.tar.bz2
tcg-ia64: Move AREG0 to R32
Since the move away from the global areg0, we're no longer globally reserving areg0. Which means our use of R7 clobbers a call-saved register. Shift areg0 into the windowed registers. Indeed, choose the incoming parameter register that it comes to us by. This requires moving the register holding the return address elsewhere. Choose R33 for tidiness. Acked-by: Aurelien Jarno <aurelien@aurel32.net> Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'tcg/ia64/tcg-target.h')
-rw-r--r--tcg/ia64/tcg-target.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tcg/ia64/tcg-target.h b/tcg/ia64/tcg-target.h
index c90038a..52a939c 100644
--- a/tcg/ia64/tcg-target.h
+++ b/tcg/ia64/tcg-target.h
@@ -92,6 +92,8 @@ typedef enum {
TCG_REG_R61,
TCG_REG_R62,
TCG_REG_R63,
+
+ TCG_AREG0 = TCG_REG_R32,
} TCGReg;
#define TCG_CT_CONST_ZERO 0x100
@@ -162,8 +164,6 @@ typedef enum {
#define TCG_TARGET_HAS_not_i32 0 /* xor r1, -1, r3 */
#define TCG_TARGET_HAS_not_i64 0 /* xor r1, -1, r3 */
-#define TCG_AREG0 TCG_REG_R7
-
static inline void flush_icache_range(uintptr_t start, uintptr_t stop)
{
start = start & ~(32UL - 1UL);