Skip to content

Commit

Permalink
pmp test: add useful masks for registers
Browse files Browse the repository at this point in the history
  • Loading branch information
wsipak committed Jan 10, 2025
1 parent afff8e3 commit 6a3733c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions testbench/tests/pmp/pmp.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#define PMP_W (1<<1)
#define PMP_R (1<<0)

#define PMP_MODE_MASK (3<<3)
#define PMP_RWX_MASK (3)

#define CSR_PMPCFG_BASE 0x3A0
#define CSR_PMPADDR_BASE 0x3B0

Expand Down

0 comments on commit 6a3733c

Please sign in to comment.