From: Stefan Weil Date: Mon, 5 Sep 2011 09:06:58 +0000 (+0200) Subject: tcg/i386: Only one call output register needed for 64 bit hosts X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=68af23af694b4aa9f8e32b11ab4cc05933178b57;p=qmiga%2Fqemu.git 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 Signed-off-by: Blue Swirl --- diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c index 7529677fe2..281f87d3c6 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;