mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Unit Tests: Added W^X Support for PowerPC test
This commit is contained in:
@ -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()));
|
||||
|
||||
|
Reference in New Issue
Block a user