From 9eee0f99c1779d85ee0ed58505912c5fcdcca03c Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Tue, 5 Mar 2019 22:47:25 +0100 Subject: Try the strict check of encoded instructions and relax break and other. Some instructions can have fields to be used by operating system or for error reporting by user. Signed-off-by: Pavel Pisa --- qtmips_machine/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qtmips_machine/core.cpp') diff --git a/qtmips_machine/core.cpp b/qtmips_machine/core.cpp index 2ba8d34..2b8c3bc 100644 --- a/qtmips_machine/core.cpp +++ b/qtmips_machine/core.cpp @@ -264,7 +264,7 @@ struct Core::dtDecode Core::decode(const struct dtFetch &dt) { dt.inst.flags_alu_op_mem_ctl(flags, alu_op, mem_ctl); if (!(flags & IMF_SUPPORTED)) - throw QTMIPS_EXCEPTION(UnsupportedInstruction, "Instruction with following opcode is not supported", QString::number(dt.inst.opcode(), 16)); + throw QTMIPS_EXCEPTION(UnsupportedInstruction, "Instruction with following encoding is not supported", QString::number(dt.inst.data(), 16)); std::uint8_t num_rs = dt.inst.rs(); std::uint8_t num_rt = dt.inst.rt(); -- cgit v1.2.3