diff options
Diffstat (limited to 'target-alpha/helper.h')
-rw-r--r-- | target-alpha/helper.h | 260 |
1 files changed, 130 insertions, 130 deletions
diff --git a/target-alpha/helper.h b/target-alpha/helper.h index a8c674c6eb..4c4855d093 100644 --- a/target-alpha/helper.h +++ b/target-alpha/helper.h @@ -1,133 +1,133 @@ -#ifndef DEF_HELPER -#define DEF_HELPER(ret, name, params) ret name params; -#endif - -DEF_HELPER(void, helper_tb_flush, (void)) - -DEF_HELPER(void, helper_excp, (int, int)) -DEF_HELPER(uint64_t, helper_amask, (uint64_t)) -DEF_HELPER(uint64_t, helper_load_pcc, (void)) -DEF_HELPER(uint64_t, helper_load_implver, (void)) -DEF_HELPER(uint64_t, helper_rc, (void)) -DEF_HELPER(uint64_t, helper_rs, (void)) - -DEF_HELPER(uint64_t, helper_addqv, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_addlv, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_subqv, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_sublv, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mullv, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mulqv, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_umulh, (uint64_t, uint64_t)) - -DEF_HELPER(uint64_t, helper_ctpop, (uint64_t)) -DEF_HELPER(uint64_t, helper_ctlz, (uint64_t)) -DEF_HELPER(uint64_t, helper_cttz, (uint64_t)) - -DEF_HELPER(uint64_t, helper_mskbl, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_insbl, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mskwl, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_inswl, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mskll, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_insll, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_zap, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_zapnot, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mskql, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_insql, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mskwh, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_inswh, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_msklh, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_inslh, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mskqh, (int64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_insqh, (int64_t, uint64_t)) - -DEF_HELPER(uint64_t, helper_cmpbge, (uint64_t, uint64_t)) - -DEF_HELPER(uint64_t, helper_load_fpcr, (void)) -DEF_HELPER(void, helper_store_fpcr, (uint64_t val)) - -DEF_HELPER(uint32_t, helper_f_to_memory, (uint64_t s)) -DEF_HELPER(uint64_t, helper_memory_to_f, (uint32_t s)) -DEF_HELPER(uint64_t, helper_addf, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_subf, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mulf, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_divf, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_sqrtf, (uint64_t)) - -DEF_HELPER(uint64_t, helper_g_to_memory, (uint64_t s)) -DEF_HELPER(uint64_t, helper_memory_to_g, (uint64_t s)) -DEF_HELPER(uint64_t, helper_addg, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_subg, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mulg, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_divg, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_sqrtg, (uint64_t)) - -DEF_HELPER(uint32_t, helper_s_to_memory, (uint64_t s)) -DEF_HELPER(uint64_t, helper_memory_to_s, (uint32_t s)) -DEF_HELPER(uint64_t, helper_adds, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_subs, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_muls, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_divs, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_sqrts, (uint64_t)) - -DEF_HELPER(uint64_t, helper_addt, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_subt, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_mult, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_divt, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_sqrtt, (uint64_t)) - -DEF_HELPER(uint64_t, helper_cmptun, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cmpteq, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cmptle, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cmptlt, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cmpgeq, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cmpgle, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cmpglt, (uint64_t, uint64_t)) - -DEF_HELPER(uint64_t, helper_cmpfeq, (uint64_t)) -DEF_HELPER(uint64_t, helper_cmpfne, (uint64_t)) -DEF_HELPER(uint64_t, helper_cmpflt, (uint64_t)) -DEF_HELPER(uint64_t, helper_cmpfle, (uint64_t)) -DEF_HELPER(uint64_t, helper_cmpfgt, (uint64_t)) -DEF_HELPER(uint64_t, helper_cmpfge, (uint64_t)) - -DEF_HELPER(uint64_t, helper_cpys, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cpysn, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_cpyse, (uint64_t, uint64_t)) - -DEF_HELPER(uint64_t, helper_cvtts, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtst, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvttq, (uint64_t)) -DEF_HELPER(uint32_t, helper_cvtqs, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtqt, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtqf, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtgf, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtgq, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtqg, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtlq, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtql, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtqlv, (uint64_t)) -DEF_HELPER(uint64_t, helper_cvtqlsv, (uint64_t)) +#include "def-helper.h" + +DEF_HELPER_0(tb_flush, void) + +DEF_HELPER_2(excp, void, int, int) +DEF_HELPER_1(amask, i64, i64) +DEF_HELPER_0(load_pcc, i64) +DEF_HELPER_0(load_implver, i64) +DEF_HELPER_0(rc, i64) +DEF_HELPER_0(rs, i64) + +DEF_HELPER_2(addqv, i64, i64, i64) +DEF_HELPER_2(addlv, i64, i64, i64) +DEF_HELPER_2(subqv, i64, i64, i64) +DEF_HELPER_2(sublv, i64, i64, i64) +DEF_HELPER_2(mullv, i64, i64, i64) +DEF_HELPER_2(mulqv, i64, i64, i64) +DEF_HELPER_2(umulh, i64, i64, i64) + +DEF_HELPER_1(ctpop, i64, i64) +DEF_HELPER_1(ctlz, i64, i64) +DEF_HELPER_1(cttz, i64, i64) + +DEF_HELPER_2(mskbl, i64, i64, i64) +DEF_HELPER_2(insbl, i64, i64, i64) +DEF_HELPER_2(mskwl, i64, i64, i64) +DEF_HELPER_2(inswl, i64, i64, i64) +DEF_HELPER_2(mskll, i64, i64, i64) +DEF_HELPER_2(insll, i64, i64, i64) +DEF_HELPER_2(zap, i64, i64, i64) +DEF_HELPER_2(zapnot, i64, i64, i64) +DEF_HELPER_2(mskql, i64, i64, i64) +DEF_HELPER_2(insql, i64, i64, i64) +DEF_HELPER_2(mskwh, i64, i64, i64) +DEF_HELPER_2(inswh, i64, i64, i64) +DEF_HELPER_2(msklh, i64, i64, i64) +DEF_HELPER_2(inslh, i64, i64, i64) +DEF_HELPER_2(mskqh, i64, i64, i64) +DEF_HELPER_2(insqh, i64, i64, i64) + +DEF_HELPER_2(cmpbge, i64, i64, i64) + +DEF_HELPER_0(load_fpcr, i64) +DEF_HELPER_1(store_fpcr, void, i64) + +DEF_HELPER_1(f_to_memory, i32, i64) +DEF_HELPER_1(memory_to_f, i64, i32) +DEF_HELPER_2(addf, i64, i64, i64) +DEF_HELPER_2(subf, i64, i64, i64) +DEF_HELPER_2(mulf, i64, i64, i64) +DEF_HELPER_2(divf, i64, i64, i64) +DEF_HELPER_1(sqrtf, i64, i64) + +DEF_HELPER_1(g_to_memory, i64, i64) +DEF_HELPER_1(memory_to_g, i64, i64) +DEF_HELPER_2(addg, i64, i64, i64) +DEF_HELPER_2(subg, i64, i64, i64) +DEF_HELPER_2(mulg, i64, i64, i64) +DEF_HELPER_2(divg, i64, i64, i64) +DEF_HELPER_1(sqrtg, i64, i64) + +DEF_HELPER_1(s_to_memory, i32, i64) +DEF_HELPER_1(memory_to_s, i64, i32) +DEF_HELPER_2(adds, i64, i64, i64) +DEF_HELPER_2(subs, i64, i64, i64) +DEF_HELPER_2(muls, i64, i64, i64) +DEF_HELPER_2(divs, i64, i64, i64) +DEF_HELPER_1(sqrts, i64, i64) + +DEF_HELPER_2(addt, i64, i64, i64) +DEF_HELPER_2(subt, i64, i64, i64) +DEF_HELPER_2(mult, i64, i64, i64) +DEF_HELPER_2(divt, i64, i64, i64) +DEF_HELPER_1(sqrtt, i64, i64) + +DEF_HELPER_2(cmptun, i64, i64, i64) +DEF_HELPER_2(cmpteq, i64, i64, i64) +DEF_HELPER_2(cmptle, i64, i64, i64) +DEF_HELPER_2(cmptlt, i64, i64, i64) +DEF_HELPER_2(cmpgeq, i64, i64, i64) +DEF_HELPER_2(cmpgle, i64, i64, i64) +DEF_HELPER_2(cmpglt, i64, i64, i64) + +DEF_HELPER_1(cmpfeq, i64, i64) +DEF_HELPER_1(cmpfne, i64, i64) +DEF_HELPER_1(cmpflt, i64, i64) +DEF_HELPER_1(cmpfle, i64, i64) +DEF_HELPER_1(cmpfgt, i64, i64) +DEF_HELPER_1(cmpfge, i64, i64) + +DEF_HELPER_2(cpys, i64, i64, i64) +DEF_HELPER_2(cpysn, i64, i64, i64) +DEF_HELPER_2(cpyse, i64, i64, i64) + +DEF_HELPER_1(cvtts, i64, i64) +DEF_HELPER_1(cvtst, i64, i64) +DEF_HELPER_1(cvttq, i64, i64) +DEF_HELPER_1(cvtqs, i64, i64) +DEF_HELPER_1(cvtqt, i64, i64) +DEF_HELPER_1(cvtqf, i64, i64) +DEF_HELPER_1(cvtgf, i64, i64) +DEF_HELPER_1(cvtgq, i64, i64) +DEF_HELPER_1(cvtqg, i64, i64) +DEF_HELPER_1(cvtlq, i64, i64) +DEF_HELPER_1(cvtql, i64, i64) +DEF_HELPER_1(cvtqlv, i64, i64) +DEF_HELPER_1(cvtqlsv, i64, i64) #if !defined (CONFIG_USER_ONLY) -DEF_HELPER(void, helper_hw_rei, (void)) -DEF_HELPER(void, helper_hw_ret, (uint64_t)) -DEF_HELPER(uint64_t, helper_mfpr, (int, uint64_t)) -DEF_HELPER(void, helper_mtpr, (int, uint64_t)) -DEF_HELPER(void, helper_set_alt_mode, (void)) -DEF_HELPER(void, helper_restore_mode, (void)) - -DEF_HELPER(uint64_t, helper_ld_virt_to_phys, (uint64_t)) -DEF_HELPER(uint64_t, helper_st_virt_to_phys, (uint64_t)) -DEF_HELPER(void, helper_ldl_raw, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldq_raw, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldl_l_raw, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldq_l_raw, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldl_kernel, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldq_kernel, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldl_data, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_ldq_data, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_stl_raw, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_stq_raw, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_stl_c_raw, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_stq_c_raw, (uint64_t, uint64_t)) +DEF_HELPER_0(hw_rei, void) +DEF_HELPER_1(hw_ret, void, i64) +DEF_HELPER_2(mfpr, i64, int, i64) +DEF_HELPER_2(mtpr, void, int, i64) +DEF_HELPER_0(set_alt_mode, void) +DEF_HELPER_0(restore_mode, void) + +DEF_HELPER_1(ld_virt_to_phys, i64, i64) +DEF_HELPER_1(st_virt_to_phys, i64, i64) +DEF_HELPER_2(ldl_raw, void, i64, i64) +DEF_HELPER_2(ldq_raw, void, i64, i64) +DEF_HELPER_2(ldl_l_raw, void, i64, i64) +DEF_HELPER_2(ldq_l_raw, void, i64, i64) +DEF_HELPER_2(ldl_kernel, void, i64, i64) +DEF_HELPER_2(ldq_kernel, void, i64, i64) +DEF_HELPER_2(ldl_data, void, i64, i64) +DEF_HELPER_2(ldq_data, void, i64, i64) +DEF_HELPER_2(stl_raw, void, i64, i64) +DEF_HELPER_2(stq_raw, void, i64, i64) +DEF_HELPER_2(stl_c_raw, i64, i64, i64) +DEF_HELPER_2(stq_c_raw, i64, i64, i64) #endif + +#include "def-helper.h" |