forked from Github_Repos/cvw
Merge pull request #258 from liamchalk00/main
Add test cases for pmpcfg.S
This commit is contained in:
commit
c36d3cb32b
@ -53,7 +53,6 @@ string tvpaths[] = '{
|
||||
"lsu",
|
||||
"vm64check",
|
||||
"pmp",
|
||||
|
||||
"pmpcfg",
|
||||
"pmpcfg1",
|
||||
"pmpcfg2",
|
||||
|
@ -36,4 +36,6 @@ main:
|
||||
li t0, 0x8800
|
||||
csrw pmpcfg0, t0
|
||||
|
||||
|
||||
j done
|
||||
|
||||
|
12
tests/coverage/pmpcfg2.S
Normal file
12
tests/coverage/pmpcfg2.S
Normal file
@ -0,0 +1,12 @@
|
||||
// pmpcfg part 3
|
||||
// Kevin Wan, kewan@hmc.edu, 4/18/2023
|
||||
// locks each pmpXcfg bit field in order, from X = 15 to X = 0, with the A[1:0] field set to TOR.
|
||||
// See the next part in pmpcfg1.S
|
||||
|
||||
#include "WALLY-init-lib.h"
|
||||
main:
|
||||
li t0, 0x80
|
||||
csrw pmpcfg0, t0
|
||||
|
||||
|
||||
j done
|
Loading…
Reference in New Issue
Block a user