mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-05-14 20:48:09 +00:00
Fix offset in scrubber APIs
This commit is contained in:
parent
1cbf59cba8
commit
5c38feaf15
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ static inline unsigned int tcdm_scrubber_get_fix_count(unsigned int cid, unsigne
|
||||||
|
|
||||||
// Set the number of uncorrectable mismatches detected by the ECC decoders while scrubbing
|
// Set the number of uncorrectable mismatches detected by the ECC decoders while scrubbing
|
||||||
static inline unsigned int tcdm_scrubber_get_uncorrectable_count(unsigned int cid, unsigned int bank_id) {
|
static inline unsigned int tcdm_scrubber_get_uncorrectable_count(unsigned int cid, unsigned int bank_id) {
|
||||||
return pulp_read32(ARCHI_TCDM_SCRUBBER_GLOBAL_ADDR(cid) + ECC_MANAGER_SCRUB_FIX_COUNT_REG_OFFSET + bank_id*REGISTER_OFFSET);
|
return pulp_read32(ARCHI_TCDM_SCRUBBER_GLOBAL_ADDR(cid) + ECC_MANAGER_SCRUB_UNCORRECTABLE_COUNT_REG_OFFSET + bank_id*REGISTER_OFFSET);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // __HAL_TCDM_SCRUBBER_H__
|
#endif // __HAL_TCDM_SCRUBBER_H__
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue