aboutsummaryrefslogtreecommitdiff
path: root/tcg/tcg.h
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2011-09-30 21:23:06 +0200
committerStefan Weil <weil@mail.berlios.de>2011-10-31 21:52:16 +0100
commitce285b17549e806483f6499d7f3d418168116950 (patch)
tree9b2a75999f730500ec9af6afceafd8f6ce6688b0 /tcg/tcg.h
parentff74c5a9a91c6dbf1017195462aa4176f7381240 (diff)
downloadqemu-ce285b17549e806483f6499d7f3d418168116950.zip
qemu-ce285b17549e806483f6499d7f3d418168116950.tar.gz
qemu-ce285b17549e806483f6499d7f3d418168116950.tar.bz2
tcg: TCG targets may define tcg_qemu_tb_exec
Targets may use a non standard definition of tcg_tb_exec by defining this macro in their tcg_target.h. This is used here by ppc. It will be used by the TCG interpreter, too. Cc: malc <av1474@comtv.ru> Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r--tcg/tcg.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/tcg/tcg.h b/tcg/tcg.h
index 015f88a..ca48075 100644
--- a/tcg/tcg.h
+++ b/tcg/tcg.h
@@ -584,10 +584,9 @@ TCGv_i32 tcg_const_local_i32(int32_t val);
TCGv_i64 tcg_const_local_i64(int64_t val);
extern uint8_t code_gen_prologue[];
-#if defined(_ARCH_PPC) && !defined(_ARCH_PPC64)
-#define tcg_qemu_tb_exec(env, tb_ptr) \
- ((long REGPARM __attribute__ ((longcall)) (*)(void *, void *))code_gen_prologue)(env, tb_ptr)
-#else
-#define tcg_qemu_tb_exec(env, tb_ptr) \
+
+/* TCG targets may use a different definition of tcg_qemu_tb_exec. */
+#if !defined(tcg_qemu_tb_exec)
+# define tcg_qemu_tb_exec(env, tb_ptr) \
((long REGPARM (*)(void *, void *))code_gen_prologue)(env, tb_ptr)
#endif