diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-17 14:43:54 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-11-17 14:43:54 +0000 |
commit | a7812ae412311d7d47f8aa85656faadac9d64b56 (patch) | |
tree | bae5e0d6fe19739e5e6d1cdc75d84312bf175257 /target-sh4/helper.h | |
parent | 30913bae9a2cf92b5a87363ec1c7d0ad1f82cdcc (diff) |
TCG variable type checking.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5729 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4/helper.h')
-rw-r--r-- | target-sh4/helper.h | 82 |
1 files changed, 41 insertions, 41 deletions
diff --git a/target-sh4/helper.h b/target-sh4/helper.h index cb157cdb86..e8fd050efe 100644 --- a/target-sh4/helper.h +++ b/target-sh4/helper.h @@ -1,46 +1,46 @@ -#ifndef DEF_HELPER -#define DEF_HELPER(ret, name, params) ret name params; -#endif +#include "def-helper.h" -DEF_HELPER(void, helper_ldtlb, (void)) -DEF_HELPER(void, helper_raise_illegal_instruction, (void)) -DEF_HELPER(void, helper_raise_slot_illegal_instruction, (void)) -DEF_HELPER(void, helper_debug, (void)) -DEF_HELPER(void, helper_sleep, (uint32_t)) -DEF_HELPER(void, helper_trapa, (uint32_t)) +DEF_HELPER_0(ldtlb, void) +DEF_HELPER_0(raise_illegal_instruction, void) +DEF_HELPER_0(raise_slot_illegal_instruction, void) +DEF_HELPER_0(debug, void) +DEF_HELPER_1(sleep, void, i32) +DEF_HELPER_1(trapa, void, i32) -DEF_HELPER(uint32_t, helper_addv, (uint32_t, uint32_t)) -DEF_HELPER(uint32_t, helper_addc, (uint32_t, uint32_t)) -DEF_HELPER(uint32_t, helper_subv, (uint32_t, uint32_t)) -DEF_HELPER(uint32_t, helper_subc, (uint32_t, uint32_t)) -DEF_HELPER(uint32_t, helper_negc, (uint32_t)) -DEF_HELPER(uint32_t, helper_div1, (uint32_t, uint32_t)) -DEF_HELPER(void, helper_macl, (uint32_t, uint32_t)) -DEF_HELPER(void, helper_macw, (uint32_t, uint32_t)) +DEF_HELPER_2(addv, i32, i32, i32) +DEF_HELPER_2(addc, i32, i32, i32) +DEF_HELPER_2(subv, i32, i32, i32) +DEF_HELPER_2(subc, i32, i32, i32) +DEF_HELPER_1(negc, i32, i32) +DEF_HELPER_2(div1, i32, i32, i32) +DEF_HELPER_2(macl, void, i32, i32) +DEF_HELPER_2(macw, void, i32, i32) -DEF_HELPER(void, helper_ld_fpscr, (uint32_t)) +DEF_HELPER_1(ld_fpscr, void, i32) -DEF_HELPER(uint32_t, helper_fabs_FT, (uint32_t)) -DEF_HELPER(uint64_t, helper_fabs_DT, (uint64_t)) -DEF_HELPER(uint32_t, helper_fadd_FT, (uint32_t, uint32_t)) -DEF_HELPER(uint64_t, helper_fadd_DT, (uint64_t, uint64_t)) -DEF_HELPER(uint64_t, helper_fcnvsd_FT_DT, (uint32_t)) -DEF_HELPER(uint32_t, helper_fcnvds_DT_FT, (uint64_t)) +DEF_HELPER_1(fabs_FT, i32, i32) +DEF_HELPER_1(fabs_DT, i64, i64) +DEF_HELPER_2(fadd_FT, i32, i32, i32) +DEF_HELPER_2(fadd_DT, i64, i64, i64) +DEF_HELPER_1(fcnvsd_FT_DT, i64, i32) +DEF_HELPER_1(fcnvds_DT_FT, i32, i64) -DEF_HELPER(void, helper_fcmp_eq_FT, (uint32_t, uint32_t)) -DEF_HELPER(void, helper_fcmp_eq_DT, (uint64_t, uint64_t)) -DEF_HELPER(void, helper_fcmp_gt_FT, (uint32_t, uint32_t)) -DEF_HELPER(void, helper_fcmp_gt_DT, (uint64_t, uint64_t)) -DEF_HELPER(uint32_t, helper_fdiv_FT, (uint32_t, uint32_t)) -DEF_HELPER(uint64_t, helper_fdiv_DT, (uint64_t, uint64_t)) -DEF_HELPER(uint32_t, helper_float_FT, (uint32_t)) -DEF_HELPER(uint64_t, helper_float_DT, (uint32_t)) -DEF_HELPER(uint32_t, helper_fmul_FT, (uint32_t, uint32_t)) -DEF_HELPER(uint64_t, helper_fmul_DT, (uint64_t, uint64_t)) -DEF_HELPER(uint32_t, helper_fneg_T, (uint32_t)) -DEF_HELPER(uint32_t, helper_fsub_FT, (uint32_t, uint32_t)) -DEF_HELPER(uint64_t, helper_fsub_DT, (uint64_t, uint64_t)) -DEF_HELPER(uint32_t, helper_fsqrt_FT, (uint32_t)) -DEF_HELPER(uint64_t, helper_fsqrt_DT, (uint64_t)) -DEF_HELPER(uint32_t, helper_ftrc_FT, (uint32_t)) -DEF_HELPER(uint32_t, helper_ftrc_DT, (uint64_t)) +DEF_HELPER_2(fcmp_eq_FT, void, i32, i32) +DEF_HELPER_2(fcmp_eq_DT, void, i64, i64) +DEF_HELPER_2(fcmp_gt_FT, void, i32, i32) +DEF_HELPER_2(fcmp_gt_DT, void, i64, i64) +DEF_HELPER_2(fdiv_FT, i32, i32, i32) +DEF_HELPER_2(fdiv_DT, i64, i64, i64) +DEF_HELPER_1(float_FT, i32, i32) +DEF_HELPER_1(float_DT, i64, i32) +DEF_HELPER_2(fmul_FT, i32, i32, i32) +DEF_HELPER_2(fmul_DT, i64, i64, i64) +DEF_HELPER_1(fneg_T, i32, i32) +DEF_HELPER_2(fsub_FT, i32, i32, i32) +DEF_HELPER_2(fsub_DT, i64, i64, i64) +DEF_HELPER_1(fsqrt_FT, i32, i32) +DEF_HELPER_1(fsqrt_DT, i64, i64) +DEF_HELPER_1(ftrc_FT, i32, i32) +DEF_HELPER_1(ftrc_DT, i32, i64) + +#include "def-helper.h" |