diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-03-25 15:46:19 +0100 |
|---|---|---|
| committer | Admiral H. Curtiss <pikachu025@gmail.com> | 2023-03-26 14:38:07 +0200 |
| commit | 9217a9eba4d3bd9d171bf812fd4b4318bc8a0b01 (patch) | |
| tree | 79f856b23778aed99e588c0c1add37b7110a5f3b /Source/UnitTests/Core/PageFaultTest.cpp | |
| parent | db40348c86cce7d8cdb669f541e1a12ab973797e (diff) | |
JitInterface: Refactor to class, move to System.
Diffstat (limited to 'Source/UnitTests/Core/PageFaultTest.cpp')
| -rw-r--r-- | Source/UnitTests/Core/PageFaultTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/PageFaultTest.cpp b/Source/UnitTests/Core/PageFaultTest.cpp index be8de724c1..b9e37a754c 100644 --- a/Source/UnitTests/Core/PageFaultTest.cpp +++ b/Source/UnitTests/Core/PageFaultTest.cpp @@ -76,7 +76,7 @@ TEST(PageFault, PageFault) Common::WriteProtectMemory(data, PAGE_GRAN, false); PageFaultFakeJit pfjit(Core::System::GetInstance()); - JitInterface::SetJit(&pfjit); + Core::System::GetInstance().GetJitInterface().SetJit(&pfjit); pfjit.m_data = data; auto start = std::chrono::high_resolution_clock::now(); @@ -88,7 +88,7 @@ TEST(PageFault, PageFault) }; EMM::UninstallExceptionHandler(); - JitInterface::SetJit(nullptr); + Core::System::GetInstance().GetJitInterface().SetJit(nullptr); fmt::print("page fault timing:\n"); fmt::print("start->HandleFault {} ns\n", |
