Skip to content

Commit

Permalink
Update sweep script
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Naylor committed Mar 24, 2023
1 parent 5e93bc9 commit 340a7d6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 10 deletions.
13 changes: 11 additions & 2 deletions apps/Common/app.mk
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,22 @@ CHERI_EN_COND = $(findstring 1, $(CHERI_EN))
USE_CLANG ?= $(shell echo -n UseClang \
| cpp -P -imacros $(CONFIG_H) - | xargs)

# Use RV32E
USE_RV32E ?= $(shell echo -n UseRV32E \
| cpp -P -imacros $(CONFIG_H) - | xargs)

# RISC-V subset
ifeq ($(CHERI_EN), 1)
RV_ARCH = rv32imaxcheri
RV_ABI = il32pc64
else
RV_ARCH = rv32ima
RV_ABI = ilp32
ifeq ($(USE_RV32E), 1)
RV_ARCH = rv32ema
RV_ABI = ilp32e
else
RV_ARCH = rv32ima
RV_ABI = ilp32
endif
endif

ifeq ($(USE_CLANG), 1)
Expand Down
24 changes: 16 additions & 8 deletions scripts/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,27 @@ def printUsage():
("SIMTRegFileSize", "256")
, ("SIMTCapRegFileSize", "256")
]
config["DynHalfRF"] = [
("SIMTEnableRegFileScalarisation", "1")
, ("SIMTRegFilePreventScalarDetection", "1")
, ("SIMTUseLRUSpill", "1")
, ("SIMTRegFileSize", "1024")
]
config["StaticHalfRF"] = [
("UseRV32E", "1")
]

# Combinations of configs that are of interest
configCombos = [
["GCC"]
, ["GCC", "ScalarUnit", "StoreBuffer"]
, ["Clang", "RegFileScalarisation"]
, ["Clang", "ScalarUnit"]
, ["Clang", "StoreBuffer"]
, ["Clang", "ScalarUnit", "StoreBuffer"]
, ["CHERI"]
["Clang"]
, ["CHERI", "RegFileScalarisation"]
, ["CHERI", "StoreBuffer"]
, ["CHERI", "DynRegSpill"]
, ["GCC", "DynHalfRF"]
, ["GCC", "StaticHalfRF"]
, ["CHERI", "StoreBuffer"]
, ["CHERI", "ScalarUnit"]
, ["Clang", "DynRegSpill", "StoreBuffer", "ScalarUnit"]
, ["CHERI", "DynRegSpill", "StoreBuffer", "ScalarUnit"]
]

# Get directory containing script
Expand Down

0 comments on commit 340a7d6

Please sign in to comment.