diff options
Diffstat (limited to 'target-ppc/helper.h')
-rw-r--r-- | target-ppc/helper.h | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/target-ppc/helper.h b/target-ppc/helper.h index e9021c943f..c58fb444d3 100644 --- a/target-ppc/helper.h +++ b/target-ppc/helper.h @@ -1,28 +1,28 @@ -#ifndef DEF_HELPER -#define DEF_HELPER(ret, name, params) ret name params; -#endif +#include "def-helper.h" -DEF_HELPER(uint32_t, helper_fcmpo, (void)) -DEF_HELPER(uint32_t, helper_fcmpu, (void)) +DEF_HELPER_0(fcmpo, i32) +DEF_HELPER_0(fcmpu, i32) -DEF_HELPER(uint32_t, helper_load_cr, (void)) -DEF_HELPER(void, helper_store_cr, (target_ulong, uint32_t)) +DEF_HELPER_0(load_cr, tl) +DEF_HELPER_2(store_cr, void, tl, i32) #if defined(TARGET_PPC64) -DEF_HELPER(uint64_t, helper_mulhd, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mulhdu, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mulldo, (uint64_t, uint64_t)) +DEF_HELPER_2(mulhd, i64, i64, i64) +DEF_HELPER_2(mulhdu, i64, i64, i64) +DEF_HELPER_2(mulldo, i64, i64, i64) #endif -DEF_HELPER(target_ulong, helper_cntlzw, (target_ulong t)) -DEF_HELPER(target_ulong, helper_popcntb, (target_ulong val)) -DEF_HELPER(target_ulong, helper_sraw, (target_ulong, target_ulong)) +DEF_HELPER_1(cntlzw, tl, tl) +DEF_HELPER_1(popcntb, tl, tl) +DEF_HELPER_2(sraw, tl, tl, tl) #if defined(TARGET_PPC64) -DEF_HELPER(target_ulong, helper_cntlzd, (target_ulong t)) -DEF_HELPER(target_ulong, helper_popcntb_64, (target_ulong val)) -DEF_HELPER(target_ulong, helper_srad, (target_ulong, target_ulong)) +DEF_HELPER_1(cntlzd, tl, tl) +DEF_HELPER_1(popcntb_64, tl, tl) +DEF_HELPER_2(srad, tl, tl, tl) #endif -DEF_HELPER(uint32_t, helper_cntlsw32, (uint32_t)) -DEF_HELPER(uint32_t, helper_cntlzw32, (uint32_t)) -DEF_HELPER(uint32_t, helper_brinc, (uint32_t, uint32_t)) +DEF_HELPER_1(cntlsw32, i32, i32) +DEF_HELPER_1(cntlzw32, i32, i32) +DEF_HELPER_2(brinc, tl, tl, tl) + +#include "def-helper.h" |