Merge branch 'libretro' into libretro-reset
[picodrive.git] / cpu / musashi / m68kcpu.h
index 50aa6ce..63055cb 100644 (file)
 #define M68KCPU__HEADER\r
 \r
 // notaz: something's missing this\r
-#ifndef UINT16\r
+#ifndef UINT64\r
 #define UINT64 unsigned long long\r
+#endif\r
+#ifndef UINT16\r
 #define UINT32 unsigned int\r
 #define UINT16 unsigned short\r
 #define UINT8  unsigned char\r
@@ -917,6 +919,7 @@ typedef struct
 \r
        // notaz\r
        sint cyc_remaining_cycles;\r
+       sint not_polling;\r
 } m68ki_cpu_core;\r
 \r
 // notaz\r
@@ -1620,7 +1623,7 @@ INLINE void m68ki_stack_frame_buserr(uint sr)
 /* Format 8 stack frame (68010).\r
  * 68010 only.  This is the 29 word bus/address error frame.\r
  */\r
-void m68ki_stack_frame_1000(uint pc, uint sr, uint vector)\r
+INLINE void m68ki_stack_frame_1000(uint pc, uint sr, uint vector)\r
 {\r
        /* VERSION\r
      * NUMBER\r
@@ -1674,7 +1677,7 @@ void m68ki_stack_frame_1000(uint pc, uint sr, uint vector)
  * if the error happens at an instruction boundary.\r
  * PC stacked is address of next instruction.\r
  */\r
-void m68ki_stack_frame_1010(uint sr, uint vector, uint pc)\r
+INLINE void m68ki_stack_frame_1010(uint sr, uint vector, uint pc)\r
 {\r
        /* INTERNAL REGISTER */\r
        m68ki_push_16(0);\r
@@ -1721,7 +1724,7 @@ void m68ki_stack_frame_1010(uint sr, uint vector, uint pc)
  * if the error happens during instruction execution.\r
  * PC stacked is address of instruction in progress.\r
  */\r
-void m68ki_stack_frame_1011(uint sr, uint vector, uint pc)\r
+INLINE void m68ki_stack_frame_1011(uint sr, uint vector, uint pc)\r
 {\r
        /* INTERNAL REGISTERS (18 words) */\r
        m68ki_push_32(0);\r
@@ -1965,7 +1968,7 @@ m68k_read_memory_8(0x00ffff01);
 \r
 \r
 /* Service an interrupt request and start exception processing */\r
-void m68ki_exception_interrupt(uint int_level)\r
+INLINE void m68ki_exception_interrupt(uint int_level)\r
 {\r
        uint vector;\r
        uint sr;\r
@@ -2010,6 +2013,7 @@ void m68ki_exception_interrupt(uint int_level)
 \r
        /* Get the new PC */\r
        new_pc = m68ki_read_data_32((vector<<2) + REG_VBR);\r
+       //new_pc = m68k_read_immediate_32((vector<<2) + REG_VBR); // notaz hack\r
 \r
        /* If vector is uninitialized, call the uninitialized interrupt vector */\r
        if(new_pc == 0)\r