diff options
author | Scott Johnson <scott.johnson@arilinc.com> | 2021-03-06 14:14:37 -0800 |
---|---|---|
committer | Andrew Waterman <aswaterman@gmail.com> | 2021-09-08 07:59:02 -0700 |
commit | 96abf01e3a846b5eb261f2556e776207faf19f7c (patch) | |
tree | 1a4f5433735e40c308e93cc8a1989ed9b65e2501 /riscv/insns/vfmv_s_f.h | |
parent | 3518df9b69d0107f1b1d6639bef09ded697f73f9 (diff) | |
download | spike-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_s_f.h')
-rw-r--r-- | riscv/insns/vfmv_s_f.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/riscv/insns/vfmv_s_f.h b/riscv/insns/vfmv_s_f.h index 52ed7b2..d12fd91 100644 --- a/riscv/insns/vfmv_s_f.h +++ b/riscv/insns/vfmv_s_f.h @@ -1,9 +1,9 @@ // vfmv_s_f: vd[0] = rs1 (vs2=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 vl = P.VU.vl; |