First Work on JIT Part

This commit is contained in:
Xphalnos 2025-06-19 19:28:46 +02:00
parent 5602b084c0
commit 3693ac72cb
2 changed files with 8 additions and 3 deletions

2
3rd_Party/rem vendored

@ -1 +1 @@
Subproject commit fb9d9807779808c8055d66e27b0929e3c33a0cce Subproject commit cf9cff6039b68239cec122b425eba04f9acfcd9c

View file

@ -2,6 +2,8 @@
#include "jit.h" #include "jit.h"
#include <rem.h>
#ifdef WIN32 #ifdef WIN32
#include <Windows.h> #include <Windows.h>
#else #else
@ -12,8 +14,11 @@
using JitFunc = void (*)(); 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 #ifdef WIN32
u8 *code = (u8 *)VirtualAlloc(NULL, 64, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE); u8 *code = (u8 *)VirtualAlloc(NULL, 64, MEM_COMMIT | MEM_RESERVE, PAGE_EXECUTE_READWRITE);
#else #else