25 |
* SUCH DAMAGE. |
* SUCH DAMAGE. |
26 |
* |
* |
27 |
* |
* |
28 |
* $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 $ |
29 |
* |
* |
30 |
* Hitachi SuperH ("SH") CPU emulation. |
* Hitachi SuperH ("SH") CPU emulation. |
31 |
* |
* |
659 |
cpu->cd.sh.spc += sizeof(uint16_t); |
cpu->cd.sh.spc += sizeof(uint16_t); |
660 |
break; |
break; |
661 |
|
|
|
#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. */ |
|
662 |
case EXPEVT_RES_INST: |
case EXPEVT_RES_INST: |
663 |
|
/* |
664 |
|
* Note: Having this code here makes it possible to catch |
665 |
|
* reserved instructions; during normal instruction execution, |
666 |
|
* these are not very common. |
667 |
|
*/ |
668 |
|
#if 1 |
669 |
|
printf("\nRESERVED SuperH instruction at spc=%08"PRIx32"\n", |
670 |
|
cpu->cd.sh.spc); |
671 |
|
exit(1); |
672 |
|
#else |
673 |
break; |
break; |
674 |
#endif |
#endif |
675 |
|
|