summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/x64EmitterTest.cpp
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-05-02 11:57:17 +0200
committerTillmann Karras <tilkax@gmail.com>2015-06-03 21:44:31 +0200
commitd4538c762ff1d42b69c325abea9bd0ce3854f486 (patch)
tree0a0c0387b501ccaa4bf5bb4ae1dbf48ee12995b2 /Source/UnitTests/Common/x64EmitterTest.cpp
parenta0597f0d626a919c6eeb4725b0efd189fddd4341 (diff)
MemoryUtil: get executable pages near static data
and clean up a bit.
Diffstat (limited to 'Source/UnitTests/Common/x64EmitterTest.cpp')
-rw-r--r--Source/UnitTests/Common/x64EmitterTest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/UnitTests/Common/x64EmitterTest.cpp b/Source/UnitTests/Common/x64EmitterTest.cpp
index 886380e198..adbdf76a77 100644
--- a/Source/UnitTests/Common/x64EmitterTest.cpp
+++ b/Source/UnitTests/Common/x64EmitterTest.cpp
@@ -19,6 +19,7 @@
#include "Common/CPUDetect.h"
#include "Common/x64Emitter.h"
+#include "Core/PowerPC/JitCommon/Jit_Util.h"
namespace Gen
{
@@ -94,7 +95,7 @@ protected:
memset(&cpu_info, 0xFF, sizeof (cpu_info));
emitter.reset(new X64CodeBlock());
- emitter->AllocCodeSpace(4096);
+ emitter->AllocCodeSpace(4096, PPCSTATE_BASE);
code_buffer = emitter->GetWritableCodePtr();
disasm.reset(new disassembler);