Added a CompileExceptionCheck function to the JitInterface and re-routed the existing code to utilise the interface.

This commit is contained in:
skidau
2014-09-08 00:40:43 +10:00
parent 945d431171
commit 4b37fdfa45
5 changed files with 53 additions and 27 deletions

View File

@ -11,6 +11,12 @@
namespace JitInterface
{
enum
{
EXCEPTIONS_FIFO_WRITE,
EXCEPTIONS_ARAM_DMA
};
void DoState(PointerWrap &p);
CPUCoreBase *InitJitCore(int core);
@ -24,7 +30,7 @@ namespace JitInterface
bool HandleFault(uintptr_t access_address, SContext* ctx);
// used by JIT to read instructions
u32 Read_Opcode_JIT(const u32 _Address);
u32 ReadOpcodeJIT(const u32 _Address);
// Clearing CodeCache
void ClearCache();
@ -33,6 +39,8 @@ namespace JitInterface
void InvalidateICache(u32 address, u32 size);
void CompileExceptionCheck(int type);
void Shutdown();
}
extern bool bMMU;