mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
MemoryUtil: get executable pages near static data
and clean up a bit.
This commit is contained in:
parent
a0597f0d62
commit
d4538c762f
9 changed files with 33 additions and 114 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue