src/musashi/m68kcpu.h

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