summaryrefslogtreecommitdiffstats
path: root/tcg/arm/tcg-target.h
diff options
context:
space:
mode:
authorPeter Maydell2011-12-26 01:02:18 +0100
committerAndrzej Zaborowski2012-01-10 17:52:49 +0100
commit05b922dd0a1919c265361ca62902d6cdaea4cc36 (patch)
treed35b819a8d06ef357f67949f81b968e426a4bc60 /tcg/arm/tcg-target.h
parentcris-dis: Clean memory allocation (diff)
downloadqemu-05b922dd0a1919c265361ca62902d6cdaea4cc36.tar.gz
qemu-05b922dd0a1919c265361ca62902d6cdaea4cc36.tar.xz
qemu-05b922dd0a1919c265361ca62902d6cdaea4cc36.zip
tcg/arm: Use r6 as TCG_AREG0 to avoid clash with Thumb framepointer
On ARM, in Thumb mode r7 is used for the framepointer; this meant that we would fail to compile in debug mode because we were using r7 for TCG_AREG0. Shift to r6 instead to avoid this clash. (Bug reported as LP:870990.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
Diffstat (limited to 'tcg/arm/tcg-target.h')
-rw-r--r--tcg/arm/tcg-target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
index 48586c3e60..0035b471fe 100644
--- a/tcg/arm/tcg-target.h
+++ b/tcg/arm/tcg-target.h
@@ -78,7 +78,7 @@ typedef enum {
enum {
/* Note: must be synced with dyngen-exec.h */
- TCG_AREG0 = TCG_REG_R7,
+ TCG_AREG0 = TCG_REG_R6,
};
static inline void flush_icache_range(unsigned long start, unsigned long stop)