Skip to content

Commit 4e17587

Browse files
committed
[dv] Fix SET_PMP_CFG macro used by directed tests
For some region numbers it would perform additional spurious writes to the pmpcfg CSRs
1 parent a784583 commit 4e17587

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dv/uvm/core_ibex/directed_tests/custom_macros.h

+2
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,13 @@
5353
li t1, pmp_cfg; \
5454
sll t1, t1, t0; \
5555
csrw pmpcfg1, t1; \
56+
j 4f; \
5657
2 : li t2, 11; \
5758
bgt t1, t2, 3f; \
5859
li t1, pmp_cfg; \
5960
sll t1, t1, t0; \
6061
csrw pmpcfg2, t1; \
62+
j 4f; \
6163
3 : li t2, 15; \
6264
bgt t1, t2, 4f; \
6365
li t1, pmp_cfg; \

0 commit comments

Comments
 (0)