From 6ddbc6e4cfbfa0937fdebd8aa7b518d8b7fd118b Mon Sep 17 00:00:00 2001 From: pbrook Date: Mon, 31 Mar 2008 03:46:33 +0000 Subject: ARM TCG conversion 7/16. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4144 c046a42c-6fe2-441c-8c8c-71466251a162 --- tcg/tcg-op.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'tcg/tcg-op.h') diff --git a/tcg/tcg-op.h b/tcg/tcg-op.h index f05c135e4a..27f83b5b23 100644 --- a/tcg/tcg-op.h +++ b/tcg/tcg-op.h @@ -237,6 +237,18 @@ static inline void tcg_gen_helper_1_2(void *func, TCGv ret, 1, &ret, 2, args); } +static inline void tcg_gen_helper_1_3(void *func, TCGv ret, + TCGv arg1, TCGv arg2, TCGv arg3) +{ + TCGv args[3]; + args[0] = arg1; + args[1] = arg2; + args[2] = arg3; + tcg_gen_call(&tcg_ctx, + tcg_const_ptr((tcg_target_long)func), TCG_HELPER_CALL_FLAGS, + 1, &ret, 3, args); +} + static inline void tcg_gen_helper_1_4(void *func, TCGv ret, TCGv arg1, TCGv arg2, TCGv arg3, TCGv arg4) @@ -1416,3 +1428,10 @@ static inline void tcg_gen_qemu_st64(TCGv arg, TCGv addr, int mem_index) #define tcg_gen_ext_tl_i64 tcg_gen_ext_i32_i64 #define tcg_const_tl tcg_const_i32 #endif + +#if TCG_TARGET_REG_BITS == 32 +#define tcg_gen_addi_ptr tcg_gen_addi_i32 +#else /* TCG_TARGET_REG_BITS == 32 */ +#define tcg_gen_addi_ptr tcg_gen_addi_i64 +#endif /* TCG_TARGET_REG_BITS != 32 */ + -- cgit v1.2.3