aboutsummaryrefslogtreecommitdiff
path: root/qtmips_machine/instruction.cpp
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 10:34:07 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-02-07 10:34:07 +0100
commit01147f6f0855a1be9ded74995328d03bc9463b46 (patch)
tree437eac80358ca00e614a21e7e027555f8bfd377b /qtmips_machine/instruction.cpp
parentcf8c2cfcfc3477fa5434f041c38ef025844c5f60 (diff)
downloadqtmips-01147f6f0855a1be9ded74995328d03bc9463b46.tar.gz
qtmips-01147f6f0855a1be9ded74995328d03bc9463b46.tar.bz2
qtmips-01147f6f0855a1be9ded74995328d03bc9463b46.zip
Remove dependency of ALU operation encoding on MIPS instruction format.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'qtmips_machine/instruction.cpp')
-rw-r--r--qtmips_machine/instruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qtmips_machine/instruction.cpp b/qtmips_machine/instruction.cpp
index 8aea469..9df45d8 100644
--- a/qtmips_machine/instruction.cpp
+++ b/qtmips_machine/instruction.cpp
@@ -98,7 +98,7 @@ static const struct InstructionMap alu_instruction_map[] = {
.flags = FLAGS_ALU_T_R_STD_SHV},
{"SRAV", IT_R, ALU_OP_SRAV, NOMEM, nullptr,
.flags = FLAGS_ALU_T_R_STD_SHV},
- {"JR", IT_R, ALU_OP_JR, NOMEM, nullptr,
+ {"JR", IT_R, ALU_OP_NOP, NOMEM, nullptr,
.flags = IMF_SUPPORTED | IMF_BJR_REQ_RS | IMF_JUMP},
{"JALR", IT_R, ALU_OP_PASS_T, NOMEM, nullptr,
.flags = IMF_SUPPORTED | IMF_REGD | IMF_REGWRITE | IMF_BJR_REQ_RS | IMF_PC8_TO_RT | IMF_JUMP},