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>
}
| 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 ')'
return rvalue;
}
-HexValue gen_tmp_value(Context *c,
+static HexValue gen_tmp_value(Context *c,
YYLTYPE *locp,
const char *value,
unsigned bit_width,
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,