[4528] more generic call codegen
Revision: 4528
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4528 Author: bellard Date: 2008-05-22 14:59:57 +0000 (Thu, 22 May 2008)
Log Message:
-----------
more generic call codegen
Modified Paths:
--------------
trunk/tcg/i386/tcg-target.h
trunk/tcg/tcg.c
trunk/tcg/tcg.h
trunk/tcg/x86_64/tcg-target.hModified: trunk/tcg/i386/tcg-target.h
===================================================================
tcg/i386/tcg-target.h +1 -0
@@ -42,6 +42,7 @@/* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_ESP#define TCG_TARGET_STACK_ALIGN 16 +#define TCG_TARGET_CALL_STACK_OFFSET 0/* Note: must be synced with dyngen-exec.h */ #define TCG_AREG0 TCG_REG_EBP
Modified: trunk/tcg/tcg.c
===================================================================
tcg/tcg.c +69 -42
164 lines not on this page · raw message
Modified: trunk/tcg/tcg.h
===================================================================
tcg/tcg.h +4 -0
@@ -153,6 +153,10 @@safely suppressed if the return value is not used. */ #define TCG_CALL_PURE 0x0010 +/* used to align parameters */ +#define TCG_CALL_DUMMY_TCGV MAKE_TCGV(-1) +#define TCG_CALL_DUMMY_ARG ((TCGArg)(-1)) + typedef enum { TCG_COND_EQ, TCG_COND_NE,
Modified: trunk/tcg/x86_64/tcg-target.h
===================================================================
tcg/x86_64/tcg-target.h +1 -0
@@ -53,6 +53,7 @@/* used for function call generation */ #define TCG_REG_CALL_STACK TCG_REG_RSP#define TCG_TARGET_STACK_ALIGN 16 +#define TCG_TARGET_CALL_STACK_OFFSET 0/* optional instructions */ #define TCG_TARGET_HAS_bswap_i32