Skip to content

Commit 751cea0

Browse files
author
Weiwei Li
committed
fix BLOCKSZ value based on new riscv-config update
1 parent 472e18d commit 751cea0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

riscof/framework/test.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ def generate_test_pool(ispec, pspec, workdir, dbfile = None):
373373
macros.append("FLEN=64")
374374
elif re.match(r"^[^(Z,z)]+F.*$",isa):
375375
macros.append("FLEN=32")
376-
if 'Zicbo' in ispec['ISA']:
377-
macros.append("BLOCKSZ="+str(ispec['cache_block_sz']))
376+
if 'cbozero' in file:
377+
macros.append("BLOCKSZ="+str(pspec['zicbo_cache_block_sz']['zicboz_sz']))
378+
elif 'cbo' in file:
379+
macros.append("BLOCKSZ="+str(pspec['zicbo_cache_block_sz']['zicbom_sz']))
378380
test_pool.append(
379381
(file, db[file]['commit_id'], macros,isa,cov_labels))
380382
logger.info("Selecting Tests.")

0 commit comments

Comments
 (0)