From 1eeb15cd2508906f4e1d07ebba585180c69c32cb Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Thu, 14 Feb 2019 14:46:20 +0100 Subject: Ignore PREF instruction. Signed-off-by: Pavel Pisa --- qtmips_machine/instruction.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'qtmips_machine') 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) -- cgit v1.2.3