Skip to content

Commit

Permalink
tcg-ppc64: Support the ppc64 elfv2 ABI
Browse files Browse the repository at this point in the history
Tested-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
  • Loading branch information
rth7680 committed Jun 23, 2014
1 parent eaf7d1c commit a2a98f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tcg/ppc64/tcg-target.c
Expand Up @@ -1414,6 +1414,10 @@ static void tcg_out_qemu_st(TCGContext *s, TCGReg data_reg, TCGReg addr_reg,
# define LINK_AREA_SIZE (6 * SZR)
# define LR_OFFSET (1 * SZR)
# define TCG_TARGET_CALL_STACK_OFFSET (LINK_AREA_SIZE + 8 * SZR)
#elif defined(_CALL_ELF) && _CALL_ELF == 2
# define LINK_AREA_SIZE (4 * SZR)
# define LR_OFFSET (1 * SZR)
# define TCG_TARGET_CALL_STACK_OFFSET LINK_AREA_SIZE
#else
# error
#endif
Expand Down

0 comments on commit a2a98f8

Please sign in to comment.