--- trunk/src/cpus/cpu_sh.c 2007/10/08 16:21:26 35 +++ trunk/src/cpus/cpu_sh.c 2007/10/08 16:21:34 36 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: cpu_sh.c,v 1.60 2007/01/05 17:42:23 debug Exp $ + * $Id: cpu_sh.c,v 1.62 2007/03/08 19:04:09 debug Exp $ * * Hitachi SuperH ("SH") CPU emulation. * @@ -659,11 +659,17 @@ cpu->cd.sh.spc += sizeof(uint16_t); break; -#if 0 - /* Not yet. It's probably better to abort the emulator for now, - to detect this condition. It is unlikely to happen in normal - software. */ case EXPEVT_RES_INST: + /* + * Note: Having this code here makes it possible to catch + * reserved instructions; during normal instruction execution, + * these are not very common. + */ +#if 1 + printf("\nRESERVED SuperH instruction at spc=%08"PRIx32"\n", + cpu->cd.sh.spc); + exit(1); +#else break; #endif