From f1fadbb27af04115c9d24e0902d88a38d0266854 Mon Sep 17 00:00:00 2001 From: Aleksandar Markovic Date: Mon, 15 Jul 2019 22:00:45 +0200 Subject: [PATCH] target/mips: Add missing 'break' for certain cases of MFTR handling MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This was found by GCC 8.3 static analysis. Fixes: ead9360e2fb Reported-by: Stefan Weil Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Signed-off-by: Aleksandar Markovic Message-Id: <1563220847-14630-4-git-send-email-aleksandar.markovic@rt-rk.com> --- target/mips/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/mips/translate.c b/target/mips/translate.c index cce1f12590..b4898d5046 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -9826,6 +9826,7 @@ static void gen_mftr(CPUMIPSState *env, DisasContext *ctx, int rt, int rd, gen_mfc0(ctx, t0, rt, sel); break; } + break; case 12: switch (sel) { case 0: @@ -9835,6 +9836,7 @@ static void gen_mftr(CPUMIPSState *env, DisasContext *ctx, int rt, int rd, gen_mfc0(ctx, t0, rt, sel); break; } + break; case 13: switch (sel) { case 0: -- 2.11.4.GIT