]> Git Repo - qemu.git/commitdiff
tcg-ppc64: Support the ppc64 elfv2 ABI
authorRichard Henderson <[email protected]>
Tue, 25 Mar 2014 15:57:23 +0000 (08:57 -0700)
committerRichard Henderson <[email protected]>
Mon, 23 Jun 2014 14:31:43 +0000 (07:31 -0700)
Tested-by: Tom Musta <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
tcg/ppc64/tcg-target.c

index 31c3a7aad1eebad9ef7d59cd46ab5815c912784a..d3cc237b366fabec954c607a3c5cb1622cc70fba 100644 (file)
@@ -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
This page took 0.026867 seconds and 4 git commands to generate.