diff options
author | Andrew Waterman <aswaterman@gmail.com> | 2015-01-04 17:30:40 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2015-01-04 17:30:40 -0800 |
commit | f971129cb6f6f097f47b74eb3ce9b1872d6d253a (patch) | |
tree | 9def8fc2e8f62f74a056a88660ed82e5fc150685 /spike_main | |
parent | c42146fbe46827af81fde8542212dc3c6e69aa57 (diff) | |
download | riscv-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.cc | 2 |
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, {})); |