Fixed Typo and missing file on the cache type constants

This commit is contained in:
DesperateProgrammer 2024-01-25 12:12:31 +01:00
parent cd60c13ea1
commit a0f4eb691b
2 changed files with 4 additions and 1 deletions

View File

@ -1181,7 +1181,7 @@ u32 ARMv5::CP15Read(u32 id) const
return 0x41059461;
case 0x001: // cache type
return CACHE_TR_LOCKUP_TYPE_B | CACHE_TR_NONUNIFIED
return CACHE_TR_LOCKDOWN_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);

View File

@ -57,6 +57,9 @@ constexpr u32 CACHE_FLAG_VALID = (1 << 4);
constexpr u32 CACHE_FLAG_DIRTY_LOWERHALF = (1 << 2);
constexpr u32 CACHE_FLAG_DIRTY_UPPERHALF = (1 << 3);
constexpr u32 CACHE_TR_LOCKDOWN_TYPE_B = (7 << 25);
constexpr u32 CACHE_TR_NONUNIFIED = (1 << 24);
constexpr u32 CACHE_LOCKUP_L = (1 << 31);
constexpr u32 CP15_CR_MPUENABLE = (1 << 0);