Migrate SConfig::bWii to System.

This commit is contained in:
Admiral H. Curtiss 2024-01-31 02:56:56 +01:00
commit 9a3e770c23
No known key found for this signature in database
GPG key ID: F051B4C4044F33FB
40 changed files with 110 additions and 133 deletions

View file

@ -155,7 +155,12 @@ union UCPClearReg
UCPClearReg(u16 _hex) { Hex = _hex; }
};
u32 GetPhysicalAddressMask();
constexpr u32 GetPhysicalAddressMask(bool is_wii)
{
// Physical addresses in CP seem to ignore some of the upper bits (depending on platform)
// This can be observed in CP MMIO registers by setting to 0xffffffff and then reading back.
return is_wii ? 0x1fffffff : 0x03ffffff;
}
class CommandProcessorManager
{