diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2020-06-16 10:32:26 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-06-16 10:32:26 +0100 |
commit | 448f0e5f3ecfbd089b934e5e3aa0ccd1f51a6174 (patch) | |
tree | cb9489dda5d0eb1abdcd0b9023bd939f179c7b11 /target | |
parent | 18fb58d588898550919392277787979ee7d0d84e (diff) | |
download | qemu-448f0e5f3ecfbd089b934e5e3aa0ccd1f51a6174.zip qemu-448f0e5f3ecfbd089b934e5e3aa0ccd1f51a6174.tar.gz qemu-448f0e5f3ecfbd089b934e5e3aa0ccd1f51a6174.tar.bz2 |
target/arm: Add 'static' and 'const' annotations to VSHLL function arrays
Mark the arrays of function pointers in trans_VSHLL_S_2sh() and
trans_VSHLL_U_2sh() as both 'static' and 'const'.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/translate-neon.inc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/translate-neon.inc.c b/target/arm/translate-neon.inc.c index c2cc109..7c4888a 100644 --- a/target/arm/translate-neon.inc.c +++ b/target/arm/translate-neon.inc.c @@ -1644,7 +1644,7 @@ static bool do_vshll_2sh(DisasContext *s, arg_2reg_shift *a, static bool trans_VSHLL_S_2sh(DisasContext *s, arg_2reg_shift *a) { - NeonGenWidenFn *widenfn[] = { + static NeonGenWidenFn * const widenfn[] = { gen_helper_neon_widen_s8, gen_helper_neon_widen_s16, tcg_gen_ext_i32_i64, @@ -1654,7 +1654,7 @@ static bool trans_VSHLL_S_2sh(DisasContext *s, arg_2reg_shift *a) static bool trans_VSHLL_U_2sh(DisasContext *s, arg_2reg_shift *a) { - NeonGenWidenFn *widenfn[] = { + static NeonGenWidenFn * const widenfn[] = { gen_helper_neon_widen_u8, gen_helper_neon_widen_u16, tcg_gen_extu_i32_i64, |