From: Luke Kenneth Casson Leighton Date: Mon, 15 Oct 2018 05:52:02 +0000 (+0100) Subject: need to check whether SP (reg 2) is used, without redirection X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af23195ea1c3ed1acb55ed520597ce54fb1c77ae;p=riscv-isa-sim.git need to check whether SP (reg 2) is used, without redirection --- diff --git a/riscv/insns/c_lui.h b/riscv/insns/c_lui.h index 75d8eb8..85f29ab 100644 --- a/riscv/insns/c_lui.h +++ b/riscv/insns/c_lui.h @@ -1,5 +1,5 @@ require_extension('C'); -if (insn.rvc_rd() == 2) { // c.addi16sp +if (insn.insn_t::rvc_rd() == 2) { // c.addi16sp require(insn.rvc_addi16sp_imm() != 0); WRITE_REG(X_SP, sext_xlen(RVC_SP + insn.rvc_addi16sp_imm())); } else {