diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-28 21:01:45 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-28 21:01:45 +0000 |
commit | f10dc08e004bf9d96918c5284bbaebb94a2a5c1c (patch) | |
tree | 037dff1f187945f33ac8a44bce46fcb0f48f3927 /target-ppc | |
parent | 1c73fe5bba1d66864b54a037875deb2de2603210 (diff) |
PPC: add support for TCG helpers
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5094 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-ppc')
-rw-r--r-- | target-ppc/helper.h | 4 | ||||
-rw-r--r-- | target-ppc/translate.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/target-ppc/helper.h b/target-ppc/helper.h new file mode 100644 index 0000000000..60addabeb7 --- /dev/null +++ b/target-ppc/helper.h @@ -0,0 +1,4 @@ +#ifndef DEF_HELPER +#define DEF_HELPER(ret, name, params) ret name params; +#endif + diff --git a/target-ppc/translate.c b/target-ppc/translate.c index a7064f3032..bde538a35f 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -26,6 +26,7 @@ #include "cpu.h" #include "exec-all.h" #include "disas.h" +#include "helper.h" #include "tcg-op.h" #include "qemu-common.h" @@ -65,6 +66,12 @@ void ppc_translate_init(void) cpu_T[1] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG2, "T1"); cpu_T[2] = tcg_global_reg_new(TCG_TYPE_TL, TCG_AREG3, "T2"); #endif + + /* register helpers */ +#undef DEF_HELPER +#define DEF_HELPER(ret, name, params) tcg_register_helper(name, #name); +#include "helper.h" + done_init = 1; } |