Skip to content

Commit

Permalink
fix BLOCKSZ value based on new riscv-config update
Browse files Browse the repository at this point in the history
  • Loading branch information
Weiwei Li committed Jun 4, 2022
1 parent 472e18d commit 751cea0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions riscof/framework/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,10 @@ def generate_test_pool(ispec, pspec, workdir, dbfile = None):
macros.append("FLEN=64")
elif re.match(r"^[^(Z,z)]+F.*$",isa):
macros.append("FLEN=32")
if 'Zicbo' in ispec['ISA']:
macros.append("BLOCKSZ="+str(ispec['cache_block_sz']))
if 'cbozero' in file:
macros.append("BLOCKSZ="+str(pspec['zicbo_cache_block_sz']['zicboz_sz']))
elif 'cbo' in file:
macros.append("BLOCKSZ="+str(pspec['zicbo_cache_block_sz']['zicbom_sz']))
test_pool.append(
(file, db[file]['commit_id'], macros,isa,cov_labels))
logger.info("Selecting Tests.")
Expand Down

0 comments on commit 751cea0

Please sign in to comment.