[PATCH 3/5] grlib/l2c: Access registers with helper functions

Martin Åberg maberg at gaisler.com
Tue Jan 16 14:06:28 UTC 2024


---
 bsps/shared/grlib/l2c/l2c.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/bsps/shared/grlib/l2c/l2c.c b/bsps/shared/grlib/l2c/l2c.c
index ef2a524d33..d3832cdd51 100644
--- a/bsps/shared/grlib/l2c/l2c.c
+++ b/bsps/shared/grlib/l2c/l2c.c
@@ -2107,8 +2107,8 @@ int l2cache_error_status(uint32_t * addr, uint32_t * status)
 	}
 
 	/* Get error register */
-	sts = priv->regs->error_status_control;
-	erraddr = priv->regs->error_addr;
+	sts = l2cache_reg_error();
+	erraddr = l2cache_reg_error_addr();
 
 	/* Check if an error occurred */
 	if (sts & L2C_ERROR_VALID){
-- 
2.34.1



More information about the devel mailing list