summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2021-04-22 10:05:10 +0200
committerPhilippe Mathieu-Daudé2021-05-02 16:49:34 +0200
commitbc2eb5ea1b595fb686b7bef81bbf20e6a9635476 (patch)
treec1ba2ba25dd16211004c3369d458bfd6ef7ab0d2
parenttarget/mips: Add missing CP0 check to nanoMIPS RDPGPR / WRPGPR opcodes (diff)
downloadqemu-bc2eb5ea1b595fb686b7bef81bbf20e6a9635476.tar.gz
qemu-bc2eb5ea1b595fb686b7bef81bbf20e6a9635476.tar.xz
qemu-bc2eb5ea1b595fb686b7bef81bbf20e6a9635476.zip
target/mips: Remove spurious LOG_UNIMP of MTHC0 opcode
When running with '-d unimp' all MTHC0 opcode executed are logged as unimplemented... Add the proper 'return' statement missed from commit 5204ea79ea7. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20210422081055.2349216-1-f4bug@amsat.org>
-rw-r--r--target/mips/translate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c
index 8a0a219742..3230b2bca3 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -5945,6 +5945,7 @@ static void gen_mthc0(DisasContext *ctx, TCGv arg, int reg, int sel)
goto cp0_unimplemented;
}
trace_mips_translate_c0("mthc0", register_name, reg, sel);
+ return;
cp0_unimplemented:
qemu_log_mask(LOG_UNIMP, "mthc0 %s (reg %d sel %d)\n",