summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp
diff options
context:
space:
mode:
authorScott Mansell <phiren@gmail.com>2026-07-12 11:34:44 +1200
committerGitHub <noreply@github.com>2026-07-12 11:34:44 +1200
commitfc9fd6952a62c4fe48acc00333ce360cb47b57c7 (patch)
tree98c900e645f4e0252968f2812a77fb5f1ece41a1 /Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp
parent6de526c684ee6dd8b6fc3447dae858ae480ccbb5 (diff)
parentf9ef6c2151d48ef9b5dbe9ee1c2278e5d60b5ed9 (diff)
Merge pull request #14665 from cristian64/simulated_memory_size
Core: Adjust emulated memory size automatically.
Diffstat (limited to 'Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp')
-rw-r--r--Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp b/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp
index 2cfb4b8c8f..c2622cee37 100644
--- a/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp
+++ b/Source/UnitTests/Core/PowerPC/PageTableHostMappingTest.cpp
@@ -10,6 +10,7 @@
#include "Common/Align.h"
#include "Common/CommonTypes.h"
#include "Common/Swap.h"
+#include "Core/ConfigManager.h"
#include "Core/Core.h"
#include "Core/MemTools.h"
#include "Core/PowerPC/BreakPoints.h"
@@ -131,6 +132,8 @@ public:
if (!EMM::IsExceptionHandlerSupported())
GTEST_SKIP() << "Skipping PageTableHostMappingTest because exception handler is unsupported.";
+ SConfig::Init();
+
auto& system = Core::System::GetInstance();
auto& memory = system.GetMemory();
const u32 host_page_size = memory.GetHostPageSize();
@@ -177,6 +180,8 @@ public:
EMM::UninstallExceptionHandler();
Core::UndeclareAsCPUThread();
system.GetMemory().Shutdown();
+
+ SConfig::Shutdown();
}
static void SetSR(size_t index, u32 vsid)