diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-31 02:56:56 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2024-01-31 12:54:07 +0100 |
| commit | 9a3e770c23312f61848adefc7202cb1b800cadff (patch) | |
| tree | 601445f63b85a19940e72f12df130076bb6315cc /Source/Core/VideoCommon/CommandProcessor.h | |
| parent | 8d515d407c8b51c8887e2766fb2494aad3f91a1e (diff) | |
Migrate SConfig::bWii to System.
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.h')
| -rw-r--r-- | Source/Core/VideoCommon/CommandProcessor.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/CommandProcessor.h b/Source/Core/VideoCommon/CommandProcessor.h index 932c2218ea..b231eaa3dc 100644 --- a/Source/Core/VideoCommon/CommandProcessor.h +++ b/Source/Core/VideoCommon/CommandProcessor.h @@ -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 { |
