From: Luke Kenneth Casson Leighton Date: Sat, 6 Oct 2018 15:48:55 +0000 (+0100) Subject: whoops inverted ldsp and lwsp immediates X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f4116cac439a0024b24d91d20d426f552a3f9a96;p=riscv-isa-sim.git whoops inverted ldsp and lwsp immediates --- diff --git a/riscv/sv_decode.h b/riscv/sv_decode.h index d85f047..0bde06e 100644 --- a/riscv/sv_decode.h +++ b/riscv/sv_decode.h @@ -29,8 +29,8 @@ public: offs_imm(o_imm), prd(p_rd), prs1(p_rs1), prs2(p_rs2), prs3(p_rs3) {} uint64_t _rvc_spoffs_imm(uint64_t elwidth, uint64_t baseoffs); - uint64_t rvc_ldsp_imm() { return _rvc_spoffs_imm(4, insn_t::rvc_ldsp_imm()); } - uint64_t rvc_lwsp_imm() { return _rvc_spoffs_imm(8, insn_t::rvc_lwsp_imm()); } + uint64_t rvc_lwsp_imm() { return _rvc_spoffs_imm(4, insn_t::rvc_lwsp_imm()); } + uint64_t rvc_ldsp_imm() { return _rvc_spoffs_imm(8, insn_t::rvc_ldsp_imm()); } uint64_t rd () { return predicated(_rd (), *offs_rd, prd); } uint64_t rs1() { return predicated(_rs1(), *offs_rs1, prs1); } uint64_t rs2() { return predicated(_rs2(), *offs_rs2, prs2); }