target/mips: Add 'fall through' comments for handling nanoMips' SHXS, SWXS
authorAleksandar Markovic <amarkovic@wavecomp.com>
Mon, 22 Jul 2019 16:22:52 +0000 (18:22 +0200)
committerAleksandar Markovic <amarkovic@wavecomp.com>
Mon, 22 Jul 2019 17:33:04 +0000 (19:33 +0200)
This was found by GCC 8.3 static analysis.

Missed in commit fb32f8c8560.

Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Aleksandar Rikalo <arikalo@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <1563812573-30309-2-git-send-email-aleksandar.markovic@rt-rk.com>

target/mips/translate.c

index 3575eff0ae0cd3e49762c31413bf375d8237f987..ca628002ae100d690141e43fc6f056f83e307529 100644 (file)
@@ -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: