diff options
| author | flacs <tilkax@gmail.com> | 2015-06-03 22:00:09 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-06-03 22:00:09 +0200 |
| commit | 0f7f8f87747ae825c3b5adeae35cbb66114d2ba1 (patch) | |
| tree | bd5aef3b41c174cc932ce9072c46e4071eb89c80 /Source/UnitTests/Common/x64EmitterTest.cpp | |
| parent | 9f1505435877cf8f5abe7b66fb2717c7e39c1988 (diff) | |
| parent | 0e1c51e5b959275dad2be12f01559ce4574d2898 (diff) | |
Merge pull request #2358 from Tilka/pie
x64: build a Position-Independent Executable (PIE)
Diffstat (limited to 'Source/UnitTests/Common/x64EmitterTest.cpp')
| -rw-r--r-- | Source/UnitTests/Common/x64EmitterTest.cpp | 3 |
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); |
