diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/ConvertSingleDouble.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/ConvertSingleDouble.cpp index e0b67b15bf..02b088a9cc 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/ConvertSingleDouble.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/ConvertSingleDouble.cpp @@ -33,6 +33,8 @@ class TestConversion : private JitArm64 public: TestConversion() { + const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes; + AllocCodeSpace(4096); AddChildCodeSpace(&farcode, 2048); diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp index ef82fa6d1b..7bbdffdf64 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/FPRF.cpp @@ -26,6 +26,8 @@ class TestFPRF : public JitArm64 public: TestFPRF() { + const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes; + AllocCodeSpace(4096); const u8* raw_fprf_single = GetCodePtr(); diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/Fres.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/Fres.cpp index 027a3ac89f..ad41e0a8db 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/Fres.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/Fres.cpp @@ -24,6 +24,8 @@ class TestFres : public JitArm64 public: TestFres() { + const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes; + AllocCodeSpace(4096); const u8* raw_fres = GetCodePtr(); diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/Frsqrte.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/Frsqrte.cpp index 749b147dcb..7677b2709e 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/Frsqrte.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/Frsqrte.cpp @@ -24,6 +24,8 @@ class TestFrsqrte : public JitArm64 public: TestFrsqrte() { + const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes; + AllocCodeSpace(4096); const u8* raw_frsqrte = GetCodePtr(); diff --git a/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp b/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp index 8313a7be79..4677286eda 100644 --- a/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp +++ b/Source/UnitTests/Core/PowerPC/JitArm64/MovI2R.cpp @@ -26,8 +26,11 @@ public: ResetCodePtr(); const u8* fn = GetCodePtr(); - MOVI2R(ARM64Reg::W0, value); - RET(); + { + const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes; + MOVI2R(ARM64Reg::W0, value); + RET(); + } FlushIcacheSection(const_cast(fn), const_cast(GetCodePtr())); @@ -40,8 +43,11 @@ public: ResetCodePtr(); const u8* fn = GetCodePtr(); - MOVI2R(ARM64Reg::X0, value); - RET(); + { + const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes; + MOVI2R(ARM64Reg::X0, value); + RET(); + } FlushIcacheSection(const_cast(fn), const_cast(GetCodePtr()));