PPCCache: Change u32 to u8 for plru, valid, modified

This commit is contained in:
TheLordScruffy 2023-01-07 20:18:59 -05:00
parent 811d942222
commit 825bacde43

View file

@ -30,9 +30,9 @@ struct Cache
// portion of the address is by definition the same for all addresses in a set).
std::array<std::array<u32, CACHE_WAYS>, CACHE_SETS> addrs{};
std::array<u32, CACHE_SETS> plru{};
std::array<u32, CACHE_SETS> valid{};
std::array<u32, CACHE_SETS> modified{};
std::array<u8, CACHE_SETS> plru{};
std::array<u8, CACHE_SETS> valid{};
std::array<u8, CACHE_SETS> modified{};
// Note: This is only for performance purposes; this same data could be computed at runtime
// from the tags and valid fields (and that's how it's done on the actual cache)