From f4116cac439a0024b24d91d20d426f552a3f9a96 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Sat, 6 Oct 2018 16:48:55 +0100 Subject: [PATCH] whoops inverted ldsp and lwsp immediates --- riscv/sv_decode.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 2.30.2