target-ppc: convert 405 MAC instructions to TCG
[qemu/qemu-JZ.git] / target-ppc / helper.h
blob05bfaa7562058de9cd38947d201c8cd5f172854f
1 #ifndef DEF_HELPER
2 #define DEF_HELPER(ret, name, params) ret name params;
3 #endif
5 DEF_HELPER(uint32_t, helper_fcmpo, (void))
6 DEF_HELPER(uint32_t, helper_fcmpu, (void))
8 DEF_HELPER(uint32_t, helper_load_cr, (void))
9 DEF_HELPER(void, helper_store_cr, (target_ulong, uint32_t))
11 #if defined(TARGET_PPC64)
12 DEF_HELPER(uint64_t, helper_mulhd, (uint64_t, uint64_t))
13 DEF_HELPER(uint64_t, helper_mulhdu, (uint64_t, uint64_t))
14 DEF_HELPER(uint64_t, helper_mulldo, (uint64_t, uint64_t))
15 #endif
17 DEF_HELPER(target_ulong, helper_cntlzw, (target_ulong t))
18 DEF_HELPER(target_ulong, helper_popcntb, (target_ulong val))
19 DEF_HELPER(target_ulong, helper_sraw, (target_ulong, target_ulong))
20 #if defined(TARGET_PPC64)
21 DEF_HELPER(target_ulong, helper_cntlzd, (target_ulong t))
22 DEF_HELPER(target_ulong, helper_popcntb_64, (target_ulong val))
23 DEF_HELPER(target_ulong, helper_srad, (target_ulong, target_ulong))
24 #endif