From 0d0304f2c4967c892a3216638fc4cb078afa2b44 Mon Sep 17 00:00:00 2001 From: Aleksandar Markovic Date: Mon, 15 Jul 2019 22:00:46 +0200 Subject: [PATCH] target/mips: Add missing 'break' for certain cases of MTTR handling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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-5-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 b4898d5046..3575eff0ae 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -10055,6 +10055,7 @@ static void gen_mttr(CPUMIPSState *env, DisasContext *ctx, int rd, int rt, gen_mtc0(ctx, t0, rd, sel); break; } + break; case 12: switch (sel) { case 0: @@ -10064,6 +10065,7 @@ static void gen_mttr(CPUMIPSState *env, DisasContext *ctx, int rd, int rt, gen_mtc0(ctx, t0, rd, sel); break; } + break; case 13: switch (sel) { case 0: