Skip to content
This repository was archived by the owner on Apr 29, 2026. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions riscof/framework/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def isa_set(string):
def canonicalise(isa):
all_ext = ["M","A","F","D","Q","L","C","B","J","K","T","P","V","N","S","H","U","Zicsr",
"Zifencei","Zihintpause","Zmmul","Zam","Zba","Zbc","Zbb","Zbs","Zbp","Zbm","Zbe","Zbf","Zkne",
"Zknd","Zknh","Zkse","Zksh","Zkg","Zkb","Zkr","Zks","Zkn","Ztso","Zbkb","Zbkc","Zbkx"]
"Zknd","Zknh","Zkse","Zksh","Zkg","Zkb","Zkr","Zks","Zkn","Ztso","Zbkb","Zbkc","Zbkx", "Zfh"]
canonical_string = ""
switch = False
for ext in all_ext:
Expand Down Expand Up @@ -368,7 +368,9 @@ def generate_test_pool(ispec, pspec, workdir, dbfile = None):
elif '128' in isa:
xlen = '128'
macros.append("XLEN=" + xlen)
if re.match(r"^[^(Z,z)]+D.*$",isa):
if re.match(r"^[^(Z,z)]+Zfh.*$",isa):
macros.append("FLEN=16")
elif re.match(r"^[^(Z,z)]+D.*$",isa):
macros.append("FLEN=64")
elif re.match(r"^[^(Z,z)]+F.*$",isa):
macros.append("FLEN=32")
Expand Down