mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 22:01:06 -06:00
JIT: base
all instructions are interpreted
This commit is contained in:
13
src/ARM.cpp
13
src/ARM.cpp
@ -22,6 +22,7 @@
|
||||
#include "ARM.h"
|
||||
#include "ARMInterpreter.h"
|
||||
#include "AREngine.h"
|
||||
#include "ARMJIT.h"
|
||||
|
||||
|
||||
// instruction timing notes
|
||||
@ -524,7 +525,7 @@ void ARMv5::Execute()
|
||||
|
||||
while (NDS::ARM9Timestamp < NDS::ARM9Target)
|
||||
{
|
||||
if (CPSR & 0x20) // THUMB
|
||||
/*if (CPSR & 0x20) // THUMB
|
||||
{
|
||||
// prefetch
|
||||
R[15] += 2;
|
||||
@ -557,7 +558,15 @@ void ARMv5::Execute()
|
||||
}
|
||||
else
|
||||
AddCycles_C();
|
||||
}
|
||||
}*/
|
||||
|
||||
if (!ARMJIT::IsMapped(Num, R[15] - ((CPSR&0x20)?2:4)))
|
||||
printf("aaarg ungempappter raum %x\n", R[15]);
|
||||
|
||||
ARMJIT::CompiledBlock block = ARMJIT::LookUpBlock(Num, R[15] - ((CPSR&0x20)?2:4));
|
||||
if (block == NULL)
|
||||
block = ARMJIT::CompileBlock(this);
|
||||
Cycles += block();
|
||||
|
||||
// TODO optimize this shit!!!
|
||||
if (Halted)
|
||||
|
Reference in New Issue
Block a user