fix compile error under macos
This commit is contained in:
parent
bda4239464
commit
2ae1f01f36
|
@ -600,7 +600,12 @@ static void default_instr_hook_callback(unsigned int pc)
|
|||
|
||||
#if M68K_EMULATE_ADDRESS_ERROR
|
||||
#include <setjmp.h>
|
||||
|
||||
#ifdef _BSD_SETJMP_H
|
||||
sigjmp_buf m68ki_aerr_trap;
|
||||
#else
|
||||
jmp_buf m68ki_aerr_trap;
|
||||
#endif
|
||||
#endif /* M68K_EMULATE_ADDRESS_ERROR */
|
||||
|
||||
/* ======================================================================== */
|
||||
|
|
|
@ -609,7 +609,7 @@ extern sigjmp_buf m68ki_aerr_trap;
|
|||
if(sigsetjmp(m68ki_aerr_trap, 0) != 0) \
|
||||
{ \
|
||||
m68ki_exception_address_error(m68k); \
|
||||
if(m68ki_stopped) \
|
||||
if(CPU_STOPPED) \
|
||||
{ \
|
||||
if (m68ki_remaining_cycles > 0) \
|
||||
m68ki_remaining_cycles = 0; \
|
||||
|
|
Loading…
Reference in a new issue