Unit Tests: Added W^X Support for PowerPC test

This commit is contained in:
Skyler Saleh
2021-06-19 10:05:35 -07:00
parent 3e1a25ead0
commit 655ed37983
5 changed files with 18 additions and 4 deletions

View File

@ -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<u8*>(fn), const_cast<u8*>(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<u8*>(fn), const_cast<u8*>(GetCodePtr()));