mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
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>
This commit is contained in:
parent
520a02f8b8
commit
05b922dd0a
2 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
|||
#elif defined(_ARCH_PPC)
|
||||
#define AREG0 "r27"
|
||||
#elif defined(__arm__)
|
||||
#define AREG0 "r7"
|
||||
#define AREG0 "r6"
|
||||
#elif defined(__hppa__)
|
||||
#define AREG0 "r17"
|
||||
#elif defined(__mips__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue