aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-14 14:46:20 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-14 14:46:42 +0100
commit1eeb15cd2508906f4e1d07ebba585180c69c32cb (patch)
tree39be63ebe2b2f65c1ff69a8ad81431e06f0cae98
parentd29dd17c5c8ef0a838e3eafe5ac1f35090c39b98 (diff)
downloadqtmips-1eeb15cd2508906f4e1d07ebba585180c69c32cb.tar.gz
qtmips-1eeb15cd2508906f4e1d07ebba585180c69c32cb.tar.bz2
qtmips-1eeb15cd2508906f4e1d07ebba585180c69c32cb.zip
Ignore PREF instruction.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r--qtmips_machine/instruction.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp
index 21eaacb..fe283d9 100644
--- a/qtmips_machine/instruction.cpp
+++ b/qtmips_machine/instruction.cpp
@@ -441,7 +441,8 @@ static const struct InstructionMap instruction_map[] = {
.flags = FLAGS_ALU_I_LOAD},
IM_UNKNOWN, // 49
IM_UNKNOWN, // 50
- IM_UNKNOWN, // 51
+ {"PREF", IT_I, NOALU, NOMEM, nullptr, // PREF
+ .flags = IMF_SUPPORTED},
IM_UNKNOWN, // 52
IM_UNKNOWN, // 53
IM_UNKNOWN, // 54
@@ -928,8 +929,6 @@ Instruction Instruction::from_string(QString str, bool *pok) {
return Instruction(code);
}
- printf("not found\n");
-
if (str == "NOP")
ok = true;
if (pok != nullptr)