mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-07 18:16:23 +00:00
Create constant for GPFifo physical address
This commit is contained in:
parent
b76f4dd5f8
commit
1c833ddc3c
5 changed files with 14 additions and 6 deletions
|
@ -8,6 +8,7 @@
|
|||
#include "Common/CommonTypes.h"
|
||||
#include "Common/Config/Config.h"
|
||||
#include "Common/FileUtil.h"
|
||||
#include "Core/HW/GPFifo.h"
|
||||
#include "Core/HW/MMIO.h"
|
||||
#include "UICommon/UICommon.h"
|
||||
|
||||
|
@ -40,7 +41,7 @@ TEST(IsMMIOAddress, SpecialAddresses)
|
|||
SConfig::GetInstance().bWii = true;
|
||||
|
||||
// WG Pipe address, should not be handled by MMIO.
|
||||
EXPECT_FALSE(MMIO::IsMMIOAddress(0x0C008000));
|
||||
EXPECT_FALSE(MMIO::IsMMIOAddress(GPFifo::GATHER_PIPE_PHYSICAL_ADDRESS));
|
||||
|
||||
// Locked L1 cache allocation.
|
||||
EXPECT_FALSE(MMIO::IsMMIOAddress(0xE0000000));
|
||||
|
@ -52,7 +53,7 @@ TEST(IsMMIOAddress, SpecialAddresses)
|
|||
// addresses.
|
||||
EXPECT_FALSE(MMIO::IsMMIOAddress(0xCC0000E0));
|
||||
|
||||
// And lets check some valid addresses too
|
||||
// And let's check some valid addresses too
|
||||
EXPECT_TRUE(MMIO::IsMMIOAddress(0x0C0000E0)); // GameCube MMIOs
|
||||
EXPECT_TRUE(MMIO::IsMMIOAddress(0x0D00008C)); // Wii MMIOs
|
||||
EXPECT_TRUE(MMIO::IsMMIOAddress(0x0D800F10)); // Mirror of Wii MMIOs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue