aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_ld.h
diff options
context:
space:
mode:
Diffstat (limited to 'riscv/insns/c_ld.h')
-rw-r--r--riscv/insns/c_ld.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/insns/c_ld.h b/riscv/insns/c_ld.h
new file mode 100644
index 0000000..988ea98
--- /dev/null
+++ b/riscv/insns/c_ld.h
@@ -0,0 +1,2 @@
+require_extension(EXT_ZCA);
+WRITE_RVC_RS2S(MMU.load<int64_t>(RVC_RS1S + insn.rvc_ld_imm()));