diff options
author | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-24 17:37:09 +0000 |
---|---|---|
committer | malc <malc@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-07-24 17:37:09 +0000 |
commit | a69abbe0b3428a13c8225e1bd5ea3c938a9319af (patch) | |
tree | e39419ab1da21350f9067fdfe35e433b3efdb3e1 /tcg/tcg.h | |
parent | 0b8f1b102b9e134ad363f41061eafa91adad77db (diff) |
Emit and use adhoc function descriptor for code_gen_prologue on PPC64
Thus avoiding fragile inline assembly hackery to call into generated
code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4939 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'tcg/tcg.h')
-rw-r--r-- | tcg/tcg.h | 17 |
1 files changed, 1 insertions, 16 deletions
@@ -413,24 +413,9 @@ uint64_t tcg_helper_divu_i64(uint64_t arg1, uint64_t arg2); uint64_t tcg_helper_remu_i64(uint64_t arg1, uint64_t arg2); extern uint8_t code_gen_prologue[]; -#ifdef __powerpc__ -#ifdef __powerpc64__ -#define tcg_qemu_tb_exec(tb_ptr) \ - ({ unsigned long p; \ - asm volatile ( \ - "mtctr %1\n\t" \ - "mr 3,%2\n\t" \ - "bctrl\n\t" \ - "mr %0,3\n\t" \ - : "=r" (p) \ - : "r" (code_gen_prologue), "r" (tb_ptr) \ - : "3", "4", "5", "6", "7", "8", "9", "10", "11", "12"); \ - p; \ - }) -#else +#if defined(__powerpc__) && !defined(__powerpc64__) #define tcg_qemu_tb_exec(tb_ptr) \ ((long REGPARM __attribute__ ((longcall)) (*)(void *))code_gen_prologue)(tb_ptr) -#endif #else #define tcg_qemu_tb_exec(tb_ptr) ((long REGPARM (*)(void *))code_gen_prologue)(tb_ptr) #endif |