2008-08-28 21:01:45 +00:00
|
|
|
#ifndef DEF_HELPER
|
|
|
|
#define DEF_HELPER(ret, name, params) ret name params;
|
|
|
|
#endif
|
|
|
|
|
2008-10-21 11:31:14 +00:00
|
|
|
DEF_HELPER(uint32_t, helper_fcmpo, (void))
|
|
|
|
DEF_HELPER(uint32_t, helper_fcmpu, (void))
|
|
|
|
|
|
|
|
DEF_HELPER(uint32_t, helper_load_cr, (void))
|
|
|
|
DEF_HELPER(void, helper_store_cr, (target_ulong, uint32_t))
|
2008-10-21 11:31:27 +00:00
|
|
|
|
2008-11-01 00:54:12 +00:00
|
|
|
#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))
|
|
|
|
#endif
|
|
|
|
|
2008-10-21 11:31:27 +00:00
|
|
|
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))
|
|
|
|
#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))
|
|
|
|
#endif
|
|
|
|
|