qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH for 4.1 v2 4/4] target/mips: Add missing 'break' for


From: Aleksandar Markovic
Subject: [Qemu-devel] [PATCH for 4.1 v2 4/4] target/mips: Add missing 'break' for certain cases of MTTR handling
Date: Fri, 12 Jul 2019 13:56:53 +0200

From: Aleksandar Markovic <address@hidden>

This was found by GCC 8.3 static analysis.

Signed-off-by: Aleksandar Markovic <address@hidden>
---
 target/mips/translate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/target/mips/translate.c b/target/mips/translate.c
index b1cf5f0..ca62800 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:
-- 
2.7.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]