mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
tcg: Push tcg-runtime routines into exec/helper-*
Rather than special casing them, use the standard mechanisms for tcg helper generation. Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Richard Henderson <rth@twiddle.net>
This commit is contained in:
parent
2ef6175aa7
commit
944eea962b
9 changed files with 70 additions and 74 deletions
|
@ -1,20 +1,16 @@
|
|||
#ifndef TCG_RUNTIME_H
|
||||
#define TCG_RUNTIME_H
|
||||
DEF_HELPER_FLAGS_2(div_i32, TCG_CALL_NO_RWG_SE, s32, s32, s32)
|
||||
DEF_HELPER_FLAGS_2(rem_i32, TCG_CALL_NO_RWG_SE, s32, s32, s32)
|
||||
DEF_HELPER_FLAGS_2(divu_i32, TCG_CALL_NO_RWG_SE, i32, i32, i32)
|
||||
DEF_HELPER_FLAGS_2(remu_i32, TCG_CALL_NO_RWG_SE, i32, i32, i32)
|
||||
|
||||
/* tcg-runtime.c */
|
||||
int32_t tcg_helper_div_i32(int32_t arg1, int32_t arg2);
|
||||
int32_t tcg_helper_rem_i32(int32_t arg1, int32_t arg2);
|
||||
uint32_t tcg_helper_divu_i32(uint32_t arg1, uint32_t arg2);
|
||||
uint32_t tcg_helper_remu_i32(uint32_t arg1, uint32_t arg2);
|
||||
DEF_HELPER_FLAGS_2(div_i64, TCG_CALL_NO_RWG_SE, s64, s64, s64)
|
||||
DEF_HELPER_FLAGS_2(rem_i64, TCG_CALL_NO_RWG_SE, s64, s64, s64)
|
||||
DEF_HELPER_FLAGS_2(divu_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
||||
DEF_HELPER_FLAGS_2(remu_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
||||
|
||||
int64_t tcg_helper_shl_i64(int64_t arg1, int64_t arg2);
|
||||
int64_t tcg_helper_shr_i64(int64_t arg1, int64_t arg2);
|
||||
int64_t tcg_helper_sar_i64(int64_t arg1, int64_t arg2);
|
||||
int64_t tcg_helper_div_i64(int64_t arg1, int64_t arg2);
|
||||
int64_t tcg_helper_rem_i64(int64_t arg1, int64_t arg2);
|
||||
int64_t tcg_helper_mulsh_i64(int64_t arg1, int64_t arg2);
|
||||
uint64_t tcg_helper_divu_i64(uint64_t arg1, uint64_t arg2);
|
||||
uint64_t tcg_helper_remu_i64(uint64_t arg1, uint64_t arg2);
|
||||
uint64_t tcg_helper_muluh_i64(uint64_t arg1, uint64_t arg2);
|
||||
DEF_HELPER_FLAGS_2(shl_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
||||
DEF_HELPER_FLAGS_2(shr_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
||||
DEF_HELPER_FLAGS_2(sar_i64, TCG_CALL_NO_RWG_SE, s64, s64, s64)
|
||||
|
||||
#endif
|
||||
DEF_HELPER_FLAGS_2(mulsh_i64, TCG_CALL_NO_RWG_SE, s64, s64, s64)
|
||||
DEF_HELPER_FLAGS_2(muluh_i64, TCG_CALL_NO_RWG_SE, i64, i64, i64)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue