Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
f36d692
pushing pmpsm and pmpzca tests
hamza-1821 Feb 18, 2026
69132b4
remove accidental test pmpm_cfg_A_tor_zero
hamza-1821 Feb 18, 2026
1d2081b
renamed PMP tests from pmpm to pmpsm
hamza-1821 Feb 18, 2026
8486012
reverted unintended sail.json changes
hamza-1821 Feb 18, 2026
d1d783d
Reverted accidental Makefile changes
hamza-1821 Feb 18, 2026
4874c93
Fixed some PMP tests and renamed entries_check-03 test
hamza-1821 Feb 20, 2026
3bffc48
Removed typo file pmpsm_all_entires_check-03
hamza-1821 Feb 20, 2026
b765d99
Fixed codespell and formatting issues
hamza-1821 Feb 20, 2026
23f36b3
modified tests to pass on sail
hamza-1821 Feb 23, 2026
5300795
pushing rv64 tests for pmpsm and zca
hamza-1821 Feb 23, 2026
a6fda36
updateing test config
hamza-1821 Feb 24, 2026
e9a6ee0
fixed test config and added skipmepc in trap handler
hamza-1821 Feb 25, 2026
16f149a
pushing pmpsm tests from draft PR
hamza-1821 Feb 25, 2026
8de2efc
Merge branch 'act4' into act4-work
UmerShahidengr Feb 26, 2026
fe24405
Add issue templates (#1000)
jordancarlin Feb 26, 2026
55dd6d5
Coverpoints for SvH Cont'd (#877)
sudo-apt-abdullah Feb 26, 2026
39d05ff
updated selfchecking macro
hamza-1821 Feb 28, 2026
90b3d6a
Merge branch 'act4' into act4-work
hamza-1821 Feb 28, 2026
5816e91
corrected test config for pmpsm napot legal test
hamza-1821 Feb 28, 2026
d32c9c7
changed pmpcfg3 to pmpcfg2 in rv64 test
hamza-1821 Feb 28, 2026
46cb66b
fixed test name in test file
hamza-1821 Mar 1, 2026
d2ab3b7
fixed top of files, added liscense, included NOP from utils.h
hamza-1821 Mar 1, 2026
a7b4636
added a check in pmpsm_all_entries_check.S
hamza-1821 Mar 1, 2026
2bd5cbd
fixed unclear comment
hamza-1821 Mar 1, 2026
9c271f8
added sig update for csr reads and writes in dedicated tests
hamza-1821 Mar 2, 2026
7c73341
fixed a repeating test case string
hamza-1821 Mar 2, 2026
9c99556
fixed csr walk test
hamza-1821 Mar 2, 2026
f64f5da
Refactor PMP tests: separate PMPSm and PMPZca directories
hamza-1821 Mar 2, 2026
1f9ce32
adjusted csr walk for rv32
hamza-1821 Mar 2, 2026
e9d4e08
Merge branch 'act4' into act4-work
UmerShahidengr Mar 2, 2026
c0be474
resolved some comments, changed qemu grainularity, change sail config
hamza-1821 Mar 2, 2026
76a2661
removed comments
hamza-1821 Mar 2, 2026
df5c381
corrected signature count
hamza-1821 Mar 2, 2026
45f9936
Change PMP_GRANULARITY from 0 to 1
UmerShahidengr Mar 3, 2026
3eb2d9f
Merge branch 'act4' into act4-work
UmerShahidengr Mar 3, 2026
a78754b
Changed qemu granularity to 2
hamza-1821 Mar 3, 2026
13eec08
Merge branch 'act4' into act4-work
UmerShahidengr Mar 9, 2026
c18caa6
Merge branch 'act4' into act4-work
UmerShahidengr Mar 11, 2026
eaabc50
further changes in sm and zca tests
hamza-1821 Mar 11, 2026
0fa4ec7
Corrected srl command
hamza-1821 Mar 11, 2026
5177de2
fixed shift error
hamza-1821 Mar 11, 2026
ddb6541
Updated pmpsm_csr_walk test (removed loops)
UmerShahidengr Mar 11, 2026
cf027ef
Update pmpsm_csr_walk.S RV64 (loop unrolled)
UmerShahidengr Mar 11, 2026
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
2 changes: 1 addition & 1 deletion config/qemu/qemu-rv32-max/qemu-rv32-max.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ params:
MTVEC_ILLEGAL_WRITE_BEHAVIOR: retain
# Smpmp params
NUM_PMP_ENTRIES: 16
PMP_GRANULARITY: 4
PMP_GRANULARITY: 2
# Smhpm params
HPM_COUNTER_EN:
[
Expand Down
2 changes: 1 addition & 1 deletion config/qemu/qemu-rv64-max/qemu-rv64-max.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ params:
MTVEC_ILLEGAL_WRITE_BEHAVIOR: retain
# Smpmp params
NUM_PMP_ENTRIES: 16
PMP_GRANULARITY: 4
PMP_GRANULARITY: 2
# Smhpm params
HPM_COUNTER_EN:
[
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVA20S64/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVA22S64-optional/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVA22S64/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVA23S64/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVB23S64/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVI20U32/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-RVI20U64/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-rv32-max/rvtest_config.svh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Base addresses specific for PMP
`define RAM_BASE_ADDR 32'h80000000 // PMP Region starts at RAM_BASE_ADDR + LARGEST_PROGRAM
`define LARGEST_PROGRAM 32'h00001000
`define LARGEST_PROGRAM 32'h00002000

// Define relevant addresses
`define RVMODEL_ACCESS_FAULT_ADDRESS 64'h00000000
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-rv32e/sail.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
// The configuration option determines how to handle the reserved behavior `pmpcfg_with_R0W1`.
// "PMP_Fatal" – raise a Sail exception, stopping execution.
// "PMP_ClearPermissions" – convert a PMP entry with R=0, W=1 to R=0, W=0, X=0.
"pmpcfg_write_only": "PMP_Fatal",
"pmpcfg_write_only": "PMP_ClearPermissions",
// The configuration option determines how to handle the reserved behavior `xenvcfg.CBIE` with 0b10.
// "Xenvcfg_Fatal" – raise a Sail exception, stopping execution.
// "Xenvcfg_ClearPermissions" – convert CBIE with 0b10 to 0b00.
Expand Down
2 changes: 1 addition & 1 deletion config/sail/sail-rv64-max/rvtest_config.svh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// Base addresses specific for PMP
`define RAM_BASE_ADDR 32'h80000000 // PMP Region starts at RAM_BASE_ADDR + LARGEST_PROGRAM
`define LARGEST_PROGRAM 32'h00001000
`define LARGEST_PROGRAM 32'h00002000

// Define relevant addresses
`define RVMODEL_ACCESS_FAULT_ADDRESS 64'h00000000
Expand Down
11 changes: 11 additions & 0 deletions tests/env/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,17 @@
#define RVTEST_WORD_PTR .word
#endif

// PMP macros
#define PMP0_CFG_SHIFT 0
#define PMP1_CFG_SHIFT 8
#define PMP2_CFG_SHIFT 16
#define PMP3_CFG_SHIFT 24
#define PMP4_CFG_SHIFT 32
#define PMP5_CFG_SHIFT 40
#define PMP6_CFG_SHIFT 48
#define PMP7_CFG_SHIFT 56
#define NOP 0x13
#define DOUBLE_NOP (0x13<<32)+0x13

// RVTEST_TESTDATA_LOAD_INT(data_ptr, dest_reg) loads an integer value from the
// test data section into dest_reg and increments the data_ptr pointer by SIG_STRIDE.
Expand Down
Loading
Loading