aboutsummaryrefslogtreecommitdiff
path: root/target/mips
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2020-11-24 11:53:46 +0100
committerPhilippe Mathieu-Daudé <f4bug@amsat.org>2021-01-14 17:13:53 +0100
commitddc7ef8dfe2408912832ddaac2a21ede4300ce22 (patch)
tree374e342cff69c1a09e4ff2c2d3fd8f468055b9e7 /target/mips
parentaac357ec895bfb97b6edca999d91f49b5de5049a (diff)
downloadqemu-ddc7ef8dfe2408912832ddaac2a21ede4300ce22.zip
qemu-ddc7ef8dfe2408912832ddaac2a21ede4300ce22.tar.gz
qemu-ddc7ef8dfe2408912832ddaac2a21ede4300ce22.tar.bz2
target/mips: Convert Rel6 COP1X opcode to decodetree
COP1x opcode has been removed from the Release 6. Add a single decodetree entry for it, triggering Reserved Instruction if ever used. Remove unreachable check_insn_opc_removed() call. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20201208203704.243704-8-f4bug@amsat.org>
Diffstat (limited to 'target/mips')
-rw-r--r--target/mips/mips32r6.decode2
-rw-r--r--target/mips/translate.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/target/mips/mips32r6.decode b/target/mips/mips32r6.decode
index dd7faf7..aea6f11 100644
--- a/target/mips/mips32r6.decode
+++ b/target/mips/mips32r6.decode
@@ -16,4 +16,6 @@
LSA 000000 ..... ..... ..... 000 .. 000101 @lsa
+REMOVED 010011 ----- ----- ----- ----- ------ # COP1X (COP3)
+
REMOVED 011100 ----- ----- ----- ----- ------ # SPECIAL2
diff --git a/target/mips/translate.c b/target/mips/translate.c
index 2f23ce4..f3ebac9 100644
--- a/target/mips/translate.c
+++ b/target/mips/translate.c
@@ -28826,7 +28826,6 @@ static bool decode_opc_legacy(CPUMIPSState *env, DisasContext *ctx)
break;
case OPC_CP3:
- check_insn_opc_removed(ctx, ISA_MIPS_R6);
if (ctx->CP0_Config1 & (1 << CP0C1_FP)) {
check_cp1_enabled(ctx);
op1 = MASK_CP3(ctx->opcode);