Replaced Magic numbers in CP15 cache type register

This commit is contained in:
DesperateProgrammer 2024-01-25 12:09:17 +01:00
parent 6959d6f2b0
commit cd60c13ea1
1 changed files with 3 additions and 1 deletions

View File

@ -1181,7 +1181,9 @@ u32 ARMv5::CP15Read(u32 id) const
return 0x41059461; return 0x41059461;
case 0x001: // cache type case 0x001: // cache type
return 0x0F0D2112; return CACHE_TR_LOCKUP_TYPE_B | CACHE_TR_NONUNIFIED
| (DCACHE_LINELENGTH_ENCODED << 12) | (DCACHE_SETS_LOG2 << 15) | ((DCACHE_SIZE_LOG2 - 9) << 18)
| (ICACHE_LINELENGTH_ENCODED << 0) | (ICACHE_SETS_LOG2 << 3) | ((ICACHE_SIZE_LOG2 - 9) << 6);
case 0x002: // TCM size case 0x002: // TCM size
return (6 << 6) | (5 << 18); return (6 << 6) | (5 << 18);