Am 06.12.2009 um 07:28 schrieb malc:
On Sun, 6 Dec 2009, Andreas F?rber wrote:
Am 06.12.2009 um 06:13 schrieb malc:
On Sun, 6 Dec 2009, Andreas Faerber wrote:
Darwin/ppc64 does not use function descriptors,
adapt prologue and tcg_out_call accordingly.
GPR2 is available for general use, so let's use it.
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/LowLevelABI/110-64-bit_PowerPC_Function_Calling_Conventions/64bitPowerPC.html
Signed-off-by: Andreas Faerber <andreas.faer...@web.de>
Cc: malc <av1...@comtv.ru>
---
tcg/ppc64/tcg-target.c | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/tcg/ppc64/tcg-target.c b/tcg/ppc64/tcg-target.c
index a612e10..bf9b7d9 100644
--- a/tcg/ppc64/tcg-target.c
+++ b/tcg/ppc64/tcg-target.c
Otherwise looks good.. Should i commit it with R13 fixed?
About the callee-save stuff I was less certain. Feel free to make
modifications (e.g., moving tcg_out_call up?) or have me resubmit.
Sorry, i don't get this part, i was just thinking of removing R13 from
the list. Moving tcg_out_call?
Sorry, I meant tcg_out_b. Just declaring it was the least intrusive
patch.
I've sent a v2 series, doing the above plus silencing a warning.
They are also available for pulling from git://repo.or.cz/qemu/
afaerber.git, branch tcg-osx-ppc64.
Andreas