aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/c_flwsp.h
blob: eea0ec53ca814e0af01a45f2db6adff64186eaf4 (plain)
1
2
3
4
5
6
7
8
9
if (xlen == 32) {
  require_extension(EXT_ZCF);
  require_fp;
  WRITE_FRD(f32(MMU.load<uint32_t>(RVC_SP + insn.rvc_lwsp_imm())));
} else { // c.ldsp
  require_extension(EXT_ZCA);
  require(insn.rvc_rd() != 0);
  WRITE_RD(MMU.load<int64_t>(RVC_SP + insn.rvc_ldsp_imm()));
}