mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
JitBase: Avoid System::GetInstance() and ppcState.
This commit is contained in:
@ -9,6 +9,7 @@
|
||||
#include "Common/FPURoundMode.h"
|
||||
#include "Core/PowerPC/Interpreter/Interpreter_FPUtils.h"
|
||||
#include "Core/PowerPC/JitArm64/Jit.h"
|
||||
#include "Core/System.h"
|
||||
|
||||
#include "../TestValues.h"
|
||||
|
||||
@ -30,7 +31,7 @@ struct Pair
|
||||
class TestConversion : private JitArm64
|
||||
{
|
||||
public:
|
||||
TestConversion()
|
||||
explicit TestConversion(Core::System& system) : JitArm64(system)
|
||||
{
|
||||
const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes;
|
||||
|
||||
@ -119,7 +120,7 @@ private:
|
||||
|
||||
TEST(JitArm64, ConvertDoubleToSingle)
|
||||
{
|
||||
TestConversion test;
|
||||
TestConversion test(Core::System::GetInstance());
|
||||
|
||||
for (const u64 input : double_test_values)
|
||||
{
|
||||
@ -154,7 +155,7 @@ TEST(JitArm64, ConvertDoubleToSingle)
|
||||
|
||||
TEST(JitArm64, ConvertSingleToDouble)
|
||||
{
|
||||
TestConversion test;
|
||||
TestConversion test(Core::System::GetInstance());
|
||||
|
||||
for (const u32 input : single_test_values)
|
||||
{
|
||||
|
Reference in New Issue
Block a user