summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core
diff options
context:
space:
mode:
authorTilka <tilkax@gmail.com>2022-07-31 17:06:37 +0200
committerGitHub <noreply@github.com>2022-07-31 17:06:37 +0200
commitfb45ed3981d4aaaaa55fcd16686bba68fed2c4f1 (patch)
tree03957ce00755e32d0cad5f8f76c2293bf0ffefb3 /Source/UnitTests/Core
parent2c754db3abb699894db501a453218df37a74bada (diff)
parent5bbdf7ae154a5da03d66c38855f2b1890a2a3dc8 (diff)
Merge pull request #10883 from Pokechu22/pi-fifo-reset-gp-fifo
ProcessorInterface: Reset both GPFifo and Fifo on PI_FIFO_RESET
Diffstat (limited to 'Source/UnitTests/Core')
-rw-r--r--Source/UnitTests/Core/MMIOTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/MMIOTest.cpp b/Source/UnitTests/Core/MMIOTest.cpp
index 480ba7f7b4..e10ee4e0ce 100644
--- a/Source/UnitTests/Core/MMIOTest.cpp
+++ b/Source/UnitTests/Core/MMIOTest.cpp
@@ -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