diff options
| author | Mai <mai.iam2048@gmail.com> | 2024-01-31 09:57:17 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-01-31 09:57:17 -0500 |
| commit | 30fdf25f8f3a2fd217c8c39eb3abb5b55f63b510 (patch) | |
| tree | bdf413f54fe46fc1c0a2ed168beac8b6fa84f51b /Source/Core/VideoCommon/CommandProcessor.h | |
| parent | e0828815e73faf8043da27f418f724d6b7fa9db3 (diff) | |
| parent | 9a3e770c23312f61848adefc7202cb1b800cadff (diff) | |
Merge pull request #12542 from AdmiralCurtiss/system-sconfig
Migrate m_is_mios and bWii from SConfig 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 { |
