diff options
author | Akif Ejaz <81078376+akifejaz@users.noreply.github.com> | 2024-06-12 10:25:11 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-12 10:25:11 +0500 |
commit | 22748de594631552f8b82bb895fcd7c33a91aa18 (patch) | |
tree | fef9f3669624536805eb93e7e803f2a804e39e60 /riscv/insns/c_flw.h | |
parent | dc8ea5921556e174f0393940465fb0fde99fe680 (diff) | |
parent | 9e6253f8b13bfd0ded2ececd8b0ac23902e0eac7 (diff) | |
download | spike-22748de594631552f8b82bb895fcd7c33a91aa18.zip spike-22748de594631552f8b82bb895fcd7c33a91aa18.tar.gz spike-22748de594631552f8b82bb895fcd7c33a91aa18.tar.bz2 |
Merge branch 'master' into vector-crypto
Diffstat (limited to 'riscv/insns/c_flw.h')
-rw-r--r-- | riscv/insns/c_flw.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/riscv/insns/c_flw.h b/riscv/insns/c_flw.h index 95ae260..aa64bf1 100644 --- a/riscv/insns/c_flw.h +++ b/riscv/insns/c_flw.h @@ -1,8 +1,3 @@ -if (xlen == 32) { - require_extension(EXT_ZCF); - require_fp; - WRITE_RVC_FRS2S(f32(MMU.load<uint32_t>(RVC_RS1S + insn.rvc_lw_imm()))); -} else { // c.ld - require_extension(EXT_ZCA); - WRITE_RVC_RS2S(MMU.load<int64_t>(RVC_RS1S + insn.rvc_ld_imm())); -} +require_extension(EXT_ZCF); +require_fp; +WRITE_RVC_FRS2S(f32(MMU.load<uint32_t>(RVC_RS1S + insn.rvc_lw_imm()))); |