mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-12 19:36:57 +00:00
First Work on JIT Part
This commit is contained in:
parent
5602b084c0
commit
3693ac72cb
2 changed files with 8 additions and 3 deletions
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
#include "jit.h"
|
||||
|
||||
#include <rem.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <Windows.h>
|
||||
#else
|
||||
|
|
@ -12,8 +14,11 @@
|
|||
|
||||
using JitFunc = void (*)();
|
||||
|
||||
void JIT::translate_and_run(CPU &cpu)
|
||||
{
|
||||
void JIT::translate_and_run(CPU &cpu) {
|
||||
|
||||
// TODO: Create REM Context
|
||||
create_rem_context(nullptr, nullptr, nullptr, nullptr, nullptr);
|
||||
|
||||
#ifdef WIN32
|
||||
u8 *code = (u8 *)VirtualAlloc(NULL, 64, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue