DMA: Simplify address masking

This commit is contained in:
Connor McLaughlin
2019-11-11 20:34:41 +10:00
parent 6f4cf7d5e3
commit 29674df803
2 changed files with 16 additions and 14 deletions

View File

@ -49,7 +49,8 @@ public:
void SetGPU(GPU* gpu) { m_gpu = gpu; }
private:
static constexpr PhysicalMemoryAddress ADDRESS_MASK = UINT32_C(0x00FFFFFF);
static constexpr PhysicalMemoryAddress BASE_ADDRESS_MASK = UINT32_C(0x00FFFFFF);
static constexpr PhysicalMemoryAddress ADDRESS_MASK = UINT32_C(0x001FFFFC);
static constexpr u32 TRANSFER_TICKS = 10;
enum class SyncMode : u32