mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
target/hexagon/idef-parser: Use gen_tmp for LPCFG
The GET_USR_FIELD macro initializes the output, so the initial assignment of zero is discarded. This is the only use of get_tmp_value outside of parser-helper.c, so make it static. Reviewed-by: Taylor Simpson <tsimpson@quicinc.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
2c3cee6bd7
commit
93f367bb7f
3 changed files with 2 additions and 8 deletions
|
@ -783,7 +783,7 @@ rvalue : FAIL
|
|||
}
|
||||
| LPCFG
|
||||
{
|
||||
$$ = gen_tmp_value(c, &@1, "0", 32, UNSIGNED);
|
||||
$$ = gen_tmp(c, &@1, 32, UNSIGNED);
|
||||
OUT(c, &@1, "GET_USR_FIELD(USR_LPCFG, ", &$$, ");\n");
|
||||
}
|
||||
| EXTRACT '(' rvalue ',' rvalue ')'
|
||||
|
|
|
@ -305,7 +305,7 @@ HexValue gen_tmp(Context *c,
|
|||
return rvalue;
|
||||
}
|
||||
|
||||
HexValue gen_tmp_value(Context *c,
|
||||
static HexValue gen_tmp_value(Context *c,
|
||||
YYLTYPE *locp,
|
||||
const char *value,
|
||||
unsigned bit_width,
|
||||
|
|
|
@ -154,12 +154,6 @@ HexValue gen_tmp(Context *c,
|
|||
unsigned bit_width,
|
||||
HexSignedness signedness);
|
||||
|
||||
HexValue gen_tmp_value(Context *c,
|
||||
YYLTYPE *locp,
|
||||
const char *value,
|
||||
unsigned bit_width,
|
||||
HexSignedness signedness);
|
||||
|
||||
HexValue gen_imm_value(Context *c __attribute__((unused)),
|
||||
YYLTYPE *locp,
|
||||
int value,
|
||||
|
|
Loading…
Reference in a new issue