/[gxemul]/trunk/src/cpus/cpu_sh.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/cpus/cpu_sh.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 35 by dpavlin, Mon Oct 8 16:21:17 2007 UTC revision 36 by dpavlin, Mon Oct 8 16:21:34 2007 UTC
# Line 25  Line 25 
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   *   *
# Line 659  void sh_exception(struct cpu *cpu, int e Line 659  void sh_exception(struct cpu *cpu, int e
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    

Legend:
Removed from v.35  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26