aboutsummaryrefslogtreecommitdiff
path: root/spike_main
diff options
context:
space:
mode:
authorAndrew Waterman <aswaterman@gmail.com>2015-01-04 17:30:40 -0800
committerAndrew Waterman <aswaterman@gmail.com>2015-01-04 17:30:40 -0800
commitf971129cb6f6f097f47b74eb3ce9b1872d6d253a (patch)
tree9def8fc2e8f62f74a056a88660ed82e5fc150685 /spike_main
parentc42146fbe46827af81fde8542212dc3c6e69aa57 (diff)
downloadriscv-isa-sim-f971129cb6f6f097f47b74eb3ce9b1872d6d253a.zip
riscv-isa-sim-f971129cb6f6f097f47b74eb3ce9b1872d6d253a.tar.gz
riscv-isa-sim-f971129cb6f6f097f47b74eb3ce9b1872d6d253a.tar.bz2
Disassemble jalr x0, x1, 0 as ret
Diffstat (limited to 'spike_main')
-rw-r--r--spike_main/disasm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/spike_main/disasm.cc b/spike_main/disasm.cc
index 8fb1db8..10bd204 100644
--- a/spike_main/disasm.cc
+++ b/spike_main/disasm.cc
@@ -228,9 +228,9 @@ disassembler_t::disassembler_t()
DEFINE_LTYPE(lui);
DEFINE_LTYPE(auipc);
+ add_insn(new disasm_insn_t("ret", match_jalr | match_rs1_ra, mask_jalr | mask_rd | mask_rs1 | mask_imm, {}));
DEFINE_I2TYPE("jr", jalr);
add_insn(new disasm_insn_t("jalr", match_jalr | match_rd_ra, mask_jalr | mask_rd | mask_imm, {&xrs1}));
- add_insn(new disasm_insn_t("ret", match_jalr | match_rs1_ra, mask_jalr | mask_rd | mask_rs1 | mask_imm, {}));
DEFINE_ITYPE(jalr);
add_insn(new disasm_insn_t("nop", match_addi, mask_addi | mask_rd | mask_rs1 | mask_imm, {}));