src/musashi/m68kcpu.h

changeset 19
ea417ac1d83a
parent 0
8bf1bf91a36d
child 109
2f8afb9e5baa
     1.1 --- a/src/musashi/m68kcpu.h	Mon Nov 29 00:20:40 2010 +0000
     1.2 +++ b/src/musashi/m68kcpu.h	Tue Nov 30 01:51:22 2010 +0000
     1.3 @@ -916,6 +916,7 @@
     1.4  INLINE void m68ki_exception_trapN(uint vector);
     1.5  INLINE void m68ki_exception_trace(void);
     1.6  INLINE void m68ki_exception_privilege_violation(void);
     1.7 +INLINE void m68ki_exception_bus_error(void);
     1.8  INLINE void m68ki_exception_1010(void);
     1.9  INLINE void m68ki_exception_1111(void);
    1.10  INLINE void m68ki_exception_illegal(void);
    1.11 @@ -1684,6 +1685,18 @@
    1.12  	USE_CYCLES(CYC_EXCEPTION[EXCEPTION_PRIVILEGE_VIOLATION] - CYC_INSTRUCTION[REG_IR]);
    1.13  }
    1.14  
    1.15 +/* Exception for bus error */
    1.16 +INLINE void m68ki_exception_bus_error(void)
    1.17 +{
    1.18 +	uint sr = m68ki_init_exception();
    1.19 +	m68ki_stack_frame_0000(REG_PC, sr, EXCEPTION_BUS_ERROR);
    1.20 +	m68ki_jump_vector(EXCEPTION_BUS_ERROR);
    1.21 +
    1.22 +	/* Use up some clock cycles and undo the instruction's cycles */
    1.23 +	USE_CYCLES(CYC_EXCEPTION[EXCEPTION_BUS_ERROR] - CYC_INSTRUCTION[REG_IR]);
    1.24 +}
    1.25 +
    1.26 +
    1.27  /* Exception for A-Line instructions */
    1.28  INLINE void m68ki_exception_1010(void)
    1.29  {