aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/core.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-05 22:47:25 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-05 22:47:25 +0100
commit9eee0f99c1779d85ee0ed58505912c5fcdcca03c (patch)
tree20619ec2acfa251d24e662e51f586aaa453c4dd8 /qtmips_machine/core.cpp
parent576c4381be6980f95d63ea91f8737dfc22fa8dbe (diff)
downloadqtmips-9eee0f99c1779d85ee0ed58505912c5fcdcca03c.tar.gz
qtmips-9eee0f99c1779d85ee0ed58505912c5fcdcca03c.tar.bz2
qtmips-9eee0f99c1779d85ee0ed58505912c5fcdcca03c.zip
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 <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/core.cpp')
-rw-r--r--qtmips_machine/core.cpp2
1 files changed, 1 insertions, 1 deletions
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();