[sw/silicon_creator] Remove volatile qualifier from epmp_state
Signed-off-by: Alphan Ulusoy <alphan@google.com>
diff --git a/sw/device/silicon_creator/lib/base/static_critical_epmp_state.c b/sw/device/silicon_creator/lib/base/static_critical_epmp_state.c
index c54137d..717fde6 100644
--- a/sw/device/silicon_creator/lib/base/static_critical_epmp_state.c
+++ b/sw/device/silicon_creator/lib/base/static_critical_epmp_state.c
@@ -10,4 +10,4 @@
// This is placed at a fixed location in memory within the .static_critical
// section. It will be populated by the ROM before the jump to ROM_EXT.
OT_SECTION(".static_critical.epmp_state")
-volatile epmp_state_t epmp_state;
+epmp_state_t epmp_state;
diff --git a/sw/device/silicon_creator/lib/epmp_state.c b/sw/device/silicon_creator/lib/epmp_state.c
index ee67620..c1d5e12 100644
--- a/sw/device/silicon_creator/lib/epmp_state.c
+++ b/sw/device/silicon_creator/lib/epmp_state.c
@@ -9,7 +9,7 @@
// The context is declared as weak so that the ROM and ROM_EXT may
// override its location.
-OT_WEAK volatile epmp_state_t epmp_state;
+OT_WEAK epmp_state_t epmp_state;
/**
* Extern declarations of inline functions.
@@ -23,7 +23,7 @@
rom_error_t epmp_state_check(void) {
uint32_t checks = 0;
- volatile const epmp_state_t *s = &epmp_state;
+ const epmp_state_t *s = &epmp_state;
#define CHECK_CSR(reg, value) \
do { \
uint32_t csr; \
diff --git a/sw/device/silicon_creator/lib/epmp_state.h b/sw/device/silicon_creator/lib/epmp_state.h
index 7639824..40e738f 100644
--- a/sw/device/silicon_creator/lib/epmp_state.h
+++ b/sw/device/silicon_creator/lib/epmp_state.h
@@ -142,7 +142,7 @@
uint32_t mseccfg;
} epmp_state_t;
-extern volatile epmp_state_t epmp_state;
+extern epmp_state_t epmp_state;
/**
* Configure the given PMP entry in state using the Top-Of-Range addressing