Commit 448f0e5f authored by Peter Maydell's avatar Peter Maydell
Browse files

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: default avatarPeter Maydell <peter.maydell@linaro.org>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 18fb58d5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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,