[JIT]: Introduce pipeline simulation like in the interpreter (still borked)

This commit is contained in:
Simone Coco
2025-01-29 13:29:42 +01:00
parent bb498e599e
commit 3b06950ba3
3 changed files with 14 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ struct JIT : BaseCPU {
mem.Reset();
code.reset();
blockCache = {};
blockCache.resize(kUpperSize);
}
void InvalidateBlock(u32);
@@ -43,7 +44,7 @@ private:
Registers regs;
Mem mem;
u64 cop2Latch{};
u64 blockPC = 0;
u64 blockOldPC = 0, blockPC = 0, blockNextPC = 0;
friend struct Cop1;
friend struct Registers;
using BlockFn = int (*)();