--- tme/ic/m68k/m68k-misc.c 2018/04/24 16:43:49 1.1.1.5 +++ tme/ic/m68k/m68k-misc.c 2018/04/24 16:45:41 1.1.1.6 @@ -1,4 +1,4 @@ -/* $Id: m68k-misc.c,v 1.1.1.5 2018/04/24 16:43:49 root Exp $ */ +/* $Id: m68k-misc.c,v 1.1.1.6 2018/04/24 16:45:41 root Exp $ */ /* ic/m68k/m68k-misc.c - miscellaneous things for the m68k emulator: */ @@ -36,7 +36,7 @@ /* includes: */ #include "m68k-impl.h" -_TME_RCSID("$Id: m68k-misc.c,v 1.1.1.5 2018/04/24 16:43:49 root Exp $"); +_TME_RCSID("$Id: m68k-misc.c,v 1.1.1.6 2018/04/24 16:45:41 root Exp $"); /* the memory buffer read and write functions: */ #if TME_M68K_SIZE_8 != 1 @@ -303,6 +303,9 @@ tme_m68k_thread(struct tme_m68k *ic) tme_m68k_idle(ic); /* NOTREACHED */ + case TME_M68K_MODE_DIE: + return; + default: abort(); } @@ -2285,6 +2288,18 @@ tme_m68k_verify_hook(void) { } +void +tme_m68k_kill_cpu(struct tme_m68k *ic) +{ + ic->_tme_m68k_mode = TME_M68K_MODE_DIE; +} + +int _m68k_dead; +void m68k_die(void) +{ + _m68k_dead = 1; +} + #if 1 #include