mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-15 01: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
3rd_Party/rem
vendored
2
3rd_Party/rem
vendored
|
|
@ -1 +1 @@
|
|||
Subproject commit fb9d9807779808c8055d66e27b0929e3c33a0cce
|
||||
Subproject commit cf9cff6039b68239cec122b425eba04f9acfcd9c
|
||||
|
|
@ -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