]> Shamusworld >> Repos - virtualjaguar/blobdiff - src/m68000/m68kinterface.h
Fix to M68K core vs. DSP thread sync problem.
[virtualjaguar] / src / m68000 / m68kinterface.h
index f96bf680dc9c5565575d770be7d5165b9ee9d4b5..613bb11c68baed8ad0ddec5d46ed58b2da415656 100644 (file)
@@ -90,6 +90,13 @@ int irq_ack_handler(int);
 
 // Convenience functions
 
+// Uncomment this to have the emulated CPU call a hook function after every instruction
+// NB: This must be implemented by the user!
+#define M68K_HOOK_FUNCTION
+#ifdef M68K_HOOK_FUNCTION
+void M68KInstructionHook(void);
+#endif
+
 /* Peek at the internals of a CPU context.  This can either be a context
  * retrieved using m68k_get_context() or the currently running context.
  * If context is NULL, the currently running CPU context will be used.