Message ID | 1563806584-25975-2-git-send-email-aleksandar.markovic@rt-rk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | target/mips: Fixes for 4.1 rc1 | expand |
Hi Aleksandar, On 7/22/19 4:43 PM, Aleksandar Markovic wrote: > From: Aleksandar Markovic <amarkovic@wavecomp.com> > > This was found by GCC 8.3 static analysis. > Can you add: "Missed in commit fb32f8c8560." So when looking at this commit the missing 'fall through' is more obvious. > Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com> > Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Thanks, Phil. > --- > target/mips/translate.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/target/mips/translate.c b/target/mips/translate.c > index 3575eff..ca62800 100644 > --- a/target/mips/translate.c > +++ b/target/mips/translate.c > @@ -20141,12 +20141,14 @@ static void gen_p_lsx(DisasContext *ctx, int rd, int rs, int rt) > switch (extract32(ctx->opcode, 7, 4)) { > case NM_SHXS: > check_nms(ctx); > + /* fall through */ > case NM_LHXS: > case NM_LHUXS: > tcg_gen_shli_tl(t0, t0, 1); > break; > case NM_SWXS: > check_nms(ctx); > + /* fall through */ > case NM_LWXS: > case NM_LWC1XS: > case NM_SWC1XS: >
diff --git a/target/mips/translate.c b/target/mips/translate.c index 3575eff..ca62800 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -20141,12 +20141,14 @@ static void gen_p_lsx(DisasContext *ctx, int rd, int rs, int rt) switch (extract32(ctx->opcode, 7, 4)) { case NM_SHXS: check_nms(ctx); + /* fall through */ case NM_LHXS: case NM_LHUXS: tcg_gen_shli_tl(t0, t0, 1); break; case NM_SWXS: check_nms(ctx); + /* fall through */ case NM_LWXS: case NM_LWC1XS: case NM_SWC1XS: