mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
target/hexagon: Use tcg_constant_*
Replace uses of tcg_const_* with the allocate and free close together. Inspired-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20211003004750.3608983-3-f4bug@amsat.org>
This commit is contained in:
parent
f844f745a8
commit
23803bbe52
5 changed files with 25 additions and 53 deletions
|
@ -189,14 +189,13 @@ static inline void gen_pred_cancel(TCGv pred, int slot_num)
|
|||
{
|
||||
TCGv slot_mask = tcg_const_tl(1 << slot_num);
|
||||
TCGv tmp = tcg_temp_new();
|
||||
TCGv zero = tcg_const_tl(0);
|
||||
TCGv zero = tcg_constant_tl(0);
|
||||
tcg_gen_or_tl(slot_mask, hex_slot_cancelled, slot_mask);
|
||||
tcg_gen_andi_tl(tmp, pred, 1);
|
||||
tcg_gen_movcond_tl(TCG_COND_EQ, hex_slot_cancelled, tmp, zero,
|
||||
slot_mask, hex_slot_cancelled);
|
||||
tcg_temp_free(slot_mask);
|
||||
tcg_temp_free(tmp);
|
||||
tcg_temp_free(zero);
|
||||
}
|
||||
#define PRED_LOAD_CANCEL(PRED, EA) \
|
||||
gen_pred_cancel(PRED, insn->is_endloop ? 4 : insn->slot)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue