mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-06 06:27:41 -07: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
|
|
@ -403,7 +403,7 @@ def gen_tcg_func(f, tag, regs, imms):
|
|||
if hex_common.need_part1(tag):
|
||||
f.write(" TCGv part1 = tcg_const_tl(insn->part1);\n")
|
||||
if hex_common.need_slot(tag):
|
||||
f.write(" TCGv slot = tcg_const_tl(insn->slot);\n")
|
||||
f.write(" TCGv slot = tcg_constant_tl(insn->slot);\n")
|
||||
f.write(" gen_helper_%s(" % (tag))
|
||||
i=0
|
||||
## If there is a scalar result, it is the return type
|
||||
|
|
@ -424,8 +424,6 @@ def gen_tcg_func(f, tag, regs, imms):
|
|||
if hex_common.need_slot(tag): f.write(", slot")
|
||||
if hex_common.need_part1(tag): f.write(", part1" )
|
||||
f.write(");\n")
|
||||
if hex_common.need_slot(tag):
|
||||
f.write(" tcg_temp_free(slot);\n")
|
||||
if hex_common.need_part1(tag):
|
||||
f.write(" tcg_temp_free(part1);\n")
|
||||
for immlett,bits,immshift in imms:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue