]> git.proxmox.com Git - qemu.git/commitdiff
tcg/i386: Only one call output register needed for 64 bit hosts
authorStefan Weil <weil@mail.berlios.de>
Mon, 5 Sep 2011 09:06:58 +0000 (11:06 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 17 Sep 2011 17:54:49 +0000 (17:54 +0000)
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>
tcg/i386/tcg-target.c

index 7529677fe28b751c637a3625a4ee8932611a2631..281f87d3c6e800c8cdc4f9ba410662474315f12b 100644 (file)
@@ -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;