CPU: Refactor load delay handling

Now works when mixing interpreter and recompiler code.
This commit is contained in:
Connor McLaughlin
2019-11-20 00:15:14 +10:00
parent 1d6c4a3af1
commit 5217088d82
14 changed files with 233 additions and 118 deletions

View File

@ -9,6 +9,7 @@
class JitCodeBuffer;
class Bus;
class System;
namespace CPU {
class Core;
@ -23,7 +24,7 @@ public:
CodeCache();
~CodeCache();
void Initialize(Core* core, Bus* bus);
void Initialize(System* system, Core* core, Bus* bus);
void Reset();
void Execute();
@ -39,6 +40,7 @@ private:
void InterpretCachedBlock(const CodeBlock& block);
void InterpretUncachedBlock();
System* m_system;
Core* m_core;
Bus* m_bus;