From 1045fc0439f02dc12298045ecb768c52d796dd99 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Thu, 26 Jun 2014 16:37:17 +0100 Subject: tcg/ppc: Fix support for 64-bit PPC MacOSX hosts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add back in the support for 64-bit PPC MacOSX hosts that was broken in the recent merge of the 32-bit and 64-bit TCG backends. Reported-by: Andreas Färber Signed-off-by: Peter Maydell Reviewed-by: Richard Henderson Tested-by: Andreas Färber --- tcg/ppc/tcg-target.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tcg') diff --git a/tcg/ppc/tcg-target.c b/tcg/ppc/tcg-target.c index dd84e76127..203027eb3e 100644 --- a/tcg/ppc/tcg-target.c +++ b/tcg/ppc/tcg-target.c @@ -1719,6 +1719,9 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, bool is_64) # define LINK_AREA_SIZE (6 * SZR) # define LR_OFFSET (1 * SZR) # define TCG_TARGET_CALL_STACK_OFFSET (LINK_AREA_SIZE + 8 * SZR) +#elif defined(TCG_TARGET_CALL_DARWIN) +# define LINK_AREA_SIZE (6 * SZR) +# define LR_OFFSET (2 * SZR) #elif TCG_TARGET_REG_BITS == 64 # if defined(_CALL_ELF) && _CALL_ELF == 2 # define LINK_AREA_SIZE (4 * SZR) @@ -1728,9 +1731,6 @@ static void tcg_out_qemu_st(TCGContext *s, const TCGArg *args, bool is_64) # if defined(_CALL_SYSV) # define LINK_AREA_SIZE (2 * SZR) # define LR_OFFSET (1 * SZR) -# elif defined(TCG_TARGET_CALL_DARWIN) -# define LINK_AREA_SIZE 24 -# define LR_OFFSET 8 # endif #endif #ifndef LR_OFFSET -- cgit v1.2.1