diff options
author | Stefan Weil <sw@weilnetz.de> | 2011-09-30 21:23:06 +0200 |
---|---|---|
committer | Stefan Weil <weil@mail.berlios.de> | 2011-10-31 21:52:16 +0100 |
commit | ce285b17549e806483f6499d7f3d418168116950 (patch) | |
tree | 9b2a75999f730500ec9af6afceafd8f6ce6688b0 /tcg/ppc | |
parent | ff74c5a9a91c6dbf1017195462aa4176f7381240 (diff) |
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/ppc')
-rw-r--r-- | tcg/ppc/tcg-target.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tcg/ppc/tcg-target.h b/tcg/ppc/tcg-target.h index 5c2d61294f..25a6ea4edc 100644 --- a/tcg/ppc/tcg-target.h +++ b/tcg/ppc/tcg-target.h @@ -96,3 +96,7 @@ enum { #define TCG_AREG0 TCG_REG_R27 #define TCG_TARGET_HAS_GUEST_BASE + +#define tcg_qemu_tb_exec(env, tb_ptr) \ + ((long REGPARM __attribute__ ((longcall)) \ + (*)(void *, void *))code_gen_prologue)(env, tb_ptr) |