diff options
author | Stefan Weil <weil@mail.berlios.de> | 2011-09-05 11:06:58 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2011-09-17 17:54:49 +0000 |
commit | 68af23af694b4aa9f8e32b11ab4cc05933178b57 (patch) | |
tree | 35ecad24194fc53a3833722362b1676001ce9a14 /tcg/i386/tcg-target.c | |
parent | 5c6562c204699616766b0d50c9d8a84d4a029b77 (diff) | |
download | hqemu-68af23af694b4aa9f8e32b11ab4cc05933178b57.zip hqemu-68af23af694b4aa9f8e32b11ab4cc05933178b57.tar.gz |
tcg/i386: Only one call output register needed for 64 bit hosts
The second register is only needed for 32 bit hosts.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/i386/tcg-target.c')
-rw-r--r-- | tcg/i386/tcg-target.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 7529677..281f87d 100644 --- a/tcg/i386/tcg-target.c +++ b/tcg/i386/tcg-target.c @@ -76,9 +76,11 @@ static const int tcg_target_call_iarg_regs[] = { #endif }; -static const int tcg_target_call_oarg_regs[2] = { +static const int tcg_target_call_oarg_regs[] = { TCG_REG_EAX, +#if TCG_TARGET_REG_BITS == 32 TCG_REG_EDX +#endif }; static uint8_t *tb_ret_addr; |