diff options
author | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-07-15 22:00:45 +0200 |
---|---|---|
committer | Aleksandar Markovic <amarkovic@wavecomp.com> | 2019-07-15 22:22:01 +0200 |
commit | f1fadbb27af04115c9d24e0902d88a38d0266854 (patch) | |
tree | 694e3ce9a196a0e05837690b42094516cd2cf988 /target | |
parent | ab8c34105a0ddd0c05159fb76919a18de8df4e8f (diff) |
target/mips: Add missing 'break' for certain cases of MFTR handling
This was found by GCC 8.3 static analysis.
Fixes: ead9360e2fb
Reported-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Message-Id: <1563220847-14630-4-git-send-email-aleksandar.markovic@rt-rk.com>
Diffstat (limited to 'target')
-rw-r--r-- | target/mips/translate.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |