mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
Hexagon (target/hexagon) Remove unused slot variable in helpers
The slot variable in helpers was only passed to log_reg_write function where the argument is unused. - Remove declaration from generated helper functions - Remove slot argument from log_reg_write Signed-off-by: Taylor Simpson <tsimpson@quicinc.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230407204521.357244-1-tsimpson@quicinc.com>
This commit is contained in:
parent
761e1c675e
commit
111c529aa6
4 changed files with 9 additions and 11 deletions
|
@ -308,8 +308,6 @@ def gen_helper_function(f, tag, tagregs, tagimms):
|
|||
f.write(", ")
|
||||
f.write("uint32_t part1")
|
||||
f.write(")\n{\n")
|
||||
if not hex_common.need_slot(tag):
|
||||
f.write(" uint32_t slot __attribute__((unused)) = 4;\n")
|
||||
if hex_common.need_ea(tag):
|
||||
gen_decl_ea(f)
|
||||
## Declare the return variable
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue