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:
Taylor Simpson 2023-04-07 13:45:21 -07:00
parent 761e1c675e
commit 111c529aa6
4 changed files with 9 additions and 11 deletions

View file

@ -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