aboutsummaryrefslogtreecommitdiff
path: root/riscv/insns/vfmv_f_s.h
diff options
context:
space:
mode:
authorScott Johnson <scott.johnson@arilinc.com>2021-03-06 14:14:37 -0800
committerAndrew Waterman <aswaterman@gmail.com>2021-09-08 07:59:02 -0700
commit96abf01e3a846b5eb261f2556e776207faf19f7c (patch)
tree1a4f5433735e40c308e93cc8a1989ed9b65e2501 /riscv/insns/vfmv_f_s.h
parent3518df9b69d0107f1b1d6639bef09ded697f73f9 (diff)
downloadspike-96abf01e3a846b5eb261f2556e776207faf19f7c.zip
spike-96abf01e3a846b5eb261f2556e776207faf19f7c.tar.gz
spike-96abf01e3a846b5eb261f2556e776207faf19f7c.tar.bz2
Rename supports_extension() to extension_enabled()
Because this checks the dynamic run-time state of misa, let's use the same language as the misa spec (enabled vs disabled). Calling it supports_extension() could be confused for a check of the static configuration of Spike (i.e. the --isa string), which it was not.
Diffstat (limited to 'riscv/insns/vfmv_f_s.h')
-rw-r--r--riscv/insns/vfmv_f_s.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/insns/vfmv_f_s.h b/riscv/insns/vfmv_f_s.h
index 4a81436..3309e47 100644
--- a/riscv/insns/vfmv_f_s.h
+++ b/riscv/insns/vfmv_f_s.h
@@ -1,9 +1,9 @@
// vfmv_f_s: rd = vs2[0] (rs1=0)
require_vector(true);
require_fp;
-require((P.VU.vsew == e16 && p->supports_extension(EXT_ZFH)) ||
- (P.VU.vsew == e32 && p->supports_extension('F')) ||
- (P.VU.vsew == e64 && p->supports_extension('D')));
+require((P.VU.vsew == e16 && p->extension_enabled(EXT_ZFH)) ||
+ (P.VU.vsew == e32 && p->extension_enabled('F')) ||
+ (P.VU.vsew == e64 && p->extension_enabled('D')));
require(STATE.frm < 0x5);
reg_t rs2_num = insn.rs2();