projects
/
riscv-isa-sim.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8f30f0
)
need to check whether SP (reg 2) is used, without redirection
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 15 Oct 2018 05:52:02 +0000
(06:52 +0100)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Mon, 15 Oct 2018 05:52:02 +0000
(06:52 +0100)
riscv/insns/c_lui.h
patch
|
blob
|
history
diff --git
a/riscv/insns/c_lui.h
b/riscv/insns/c_lui.h
index 75d8eb892fa966dccc966690f3640e124d68ceda..85f29ab216b1f84317e4748d60106a7ac0ee96b2 100644
(file)
--- 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 {