diff options
Diffstat (limited to 'riscv/insns/c_flwsp.h')
-rw-r--r-- | riscv/insns/c_flwsp.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/riscv/insns/c_flwsp.h b/riscv/insns/c_flwsp.h index a9a4b2c..eea0ec5 100644 --- a/riscv/insns/c_flwsp.h +++ b/riscv/insns/c_flwsp.h @@ -1,9 +1,9 @@ -require_extension('C'); if (xlen == 32) { - require_extension('F'); + 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())); } |