From 1104b93ee4944313d39bb7869dcba1ff21758d6d Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 16 Aug 2023 23:28:33 +0200 Subject: UnitTests: Declare as CPU thread when using CPUThreadConfigCallback This fixes a bunch of DEBUG_ASSERTs in the unit tests. --- Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp') diff --git a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp index bbf6445357..09c0f30169 100644 --- a/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp +++ b/Source/UnitTests/Core/PowerPC/Jit64Common/ConvertDoubleToSingle.cpp @@ -5,7 +5,9 @@ #include #include "Common/CommonTypes.h" +#include "Common/ScopeGuard.h" #include "Common/x64ABI.h" +#include "Core/Core.h" #include "Core/PowerPC/Gekko.h" #include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h" #include "Core/PowerPC/Jit64/Jit.h" @@ -52,6 +54,9 @@ public: TEST(Jit64, ConvertDoubleToSingle) { + Core::DeclareAsCPUThread(); + Common::ScopeGuard cpu_thread_guard([] { Core::UndeclareAsCPUThread(); }); + TestCommonAsmRoutines routines(Core::System::GetInstance()); for (const u64 input : double_test_values) -- cgit v1.2.3