mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 06:13:46 +08:00
tcg/arm: Remove unused tcg_out_addi()
Remove the unused function tcg_out_addi() from the ARM TCG backend; this fixes a compilation failure on ARM hosts with newer gcc. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
f28ffed52c
commit
df0eda9b73
@ -1820,21 +1820,6 @@ static inline void tcg_out_st(TCGContext *s, TCGType type, int arg,
|
||||
tcg_out_st32(s, COND_AL, arg, arg1, arg2);
|
||||
}
|
||||
|
||||
static void tcg_out_addi(TCGContext *s, int reg, tcg_target_long val)
|
||||
{
|
||||
if (val > 0)
|
||||
if (val < 0x100)
|
||||
tcg_out_dat_imm(s, COND_AL, ARITH_ADD, reg, reg, val);
|
||||
else
|
||||
tcg_abort();
|
||||
else if (val < 0) {
|
||||
if (val > -0x100)
|
||||
tcg_out_dat_imm(s, COND_AL, ARITH_SUB, reg, reg, -val);
|
||||
else
|
||||
tcg_abort();
|
||||
}
|
||||
}
|
||||
|
||||
static inline void tcg_out_mov(TCGContext *s, TCGType type, int ret, int arg)
|
||||
{
|
||||
tcg_out_dat_reg(s, COND_AL, ARITH_MOV, ret, 0, arg, SHIFT_IMM_LSL(0));
|
||||
|
Loading…
Reference in New Issue
Block a user