From a7812ae412311d7d47f8aa85656faadac9d64b56 Mon Sep 17 00:00:00 2001 From: pbrook Date: Mon, 17 Nov 2008 14:43:54 +0000 Subject: TCG variable type checking. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5729 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/helper.h | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'target-ppc/helper.h') 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" -- cgit v1.2.1