Unit Tests: Added W^X Support for PowerPC test
This commit is contained in:
parent
3e1a25ead0
commit
655ed37983
|
@ -33,6 +33,8 @@ class TestConversion : private JitArm64
|
||||||
public:
|
public:
|
||||||
TestConversion()
|
TestConversion()
|
||||||
{
|
{
|
||||||
|
const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes;
|
||||||
|
|
||||||
AllocCodeSpace(4096);
|
AllocCodeSpace(4096);
|
||||||
AddChildCodeSpace(&farcode, 2048);
|
AddChildCodeSpace(&farcode, 2048);
|
||||||
|
|
||||||
|
|
|
@ -26,6 +26,8 @@ class TestFPRF : public JitArm64
|
||||||
public:
|
public:
|
||||||
TestFPRF()
|
TestFPRF()
|
||||||
{
|
{
|
||||||
|
const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes;
|
||||||
|
|
||||||
AllocCodeSpace(4096);
|
AllocCodeSpace(4096);
|
||||||
|
|
||||||
const u8* raw_fprf_single = GetCodePtr();
|
const u8* raw_fprf_single = GetCodePtr();
|
||||||
|
|
|
@ -24,6 +24,8 @@ class TestFres : public JitArm64
|
||||||
public:
|
public:
|
||||||
TestFres()
|
TestFres()
|
||||||
{
|
{
|
||||||
|
const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes;
|
||||||
|
|
||||||
AllocCodeSpace(4096);
|
AllocCodeSpace(4096);
|
||||||
|
|
||||||
const u8* raw_fres = GetCodePtr();
|
const u8* raw_fres = GetCodePtr();
|
||||||
|
|
|
@ -24,6 +24,8 @@ class TestFrsqrte : public JitArm64
|
||||||
public:
|
public:
|
||||||
TestFrsqrte()
|
TestFrsqrte()
|
||||||
{
|
{
|
||||||
|
const Common::ScopedJITPageWriteAndNoExecute enable_jit_page_writes;
|
||||||
|
|
||||||
AllocCodeSpace(4096);
|
AllocCodeSpace(4096);
|
||||||
|
|
||||||
const u8* raw_frsqrte = GetCodePtr();
|
const u8* raw_frsqrte = GetCodePtr();
|
||||||
|
|
|
@ -26,8 +26,11 @@ public:
|
||||||
ResetCodePtr();
|
ResetCodePtr();
|
||||||
|
|
||||||
const u8* fn = GetCodePtr();
|
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()));
|
FlushIcacheSection(const_cast<u8*>(fn), const_cast<u8*>(GetCodePtr()));
|
||||||
|
|
||||||
|
@ -40,8 +43,11 @@ public:
|
||||||
ResetCodePtr();
|
ResetCodePtr();
|
||||||
|
|
||||||
const u8* fn = GetCodePtr();
|
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()));
|
FlushIcacheSection(const_cast<u8*>(fn), const_cast<u8*>(GetCodePtr()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue