grlib/l2c: Access registers with helper functions

This commit is contained in:
Martin Åberg
2024-01-16 15:06:28 +01:00
committed by Kinsey Moore
parent 0a2c310d39
commit 6198260d26

View File

@@ -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){