From 68af23af694b4aa9f8e32b11ab4cc05933178b57 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Mon, 5 Sep 2011 11:06:58 +0200 Subject: 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 --- tcg/i386/tcg-target.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tcg/i386') 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; -- cgit v1.2.3