/[gxemul]/trunk/src/devices/dev_sh4.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/devices/dev_sh4.c

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

revision 42 by dpavlin, Mon Oct 8 16:22:32 2007 UTC revision 44 by dpavlin, Mon Oct 8 16:22:56 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $Id: dev_sh4.c,v 1.50 2007/06/15 19:57:34 debug Exp $   *  $Id: dev_sh4.c,v 1.51 2007/08/29 20:36:49 debug Exp $
29   *     *  
30   *  COMMENT: SH4-specific memory mapped registers (0xf0000000 - 0xffffffff)   *  COMMENT: SH4-specific memory mapped registers (0xf0000000 - 0xffffffff)
31   *   *
# Line 1724  DEVINIT(sh4) Line 1724  DEVINIT(sh4)
1724          d->tcor[1] = 0xffffffff; d->tcnt[1] = 0xffffffff;          d->tcor[1] = 0xffffffff; d->tcnt[1] = 0xffffffff;
1725          d->tcor[2] = 0xffffffff; d->tcnt[2] = 0xffffffff;          d->tcor[2] = 0xffffffff; d->tcnt[2] = 0xffffffff;
1726    
1727          snprintf(tmp, sizeof(tmp), "emul[0].machine[0].cpu[0].irq[0x%x]",          snprintf(tmp, sizeof(tmp), "machine[0].cpu[0].irq[0x%x]",
1728              SH_INTEVT_TMU0_TUNI0);              SH_INTEVT_TMU0_TUNI0);
1729          if (!interrupt_handler_lookup(tmp, &d->timer_irq[0])) {          if (!interrupt_handler_lookup(tmp, &d->timer_irq[0])) {
1730                  fatal("Could not find interrupt '%s'.\n", tmp);                  fatal("Could not find interrupt '%s'.\n", tmp);
1731                  exit(1);                  exit(1);
1732          }          }
1733          snprintf(tmp, sizeof(tmp), "emul[0].machine[0].cpu[0].irq[0x%x]",          snprintf(tmp, sizeof(tmp), "machine[0].cpu[0].irq[0x%x]",
1734              SH_INTEVT_TMU1_TUNI1);              SH_INTEVT_TMU1_TUNI1);
1735          if (!interrupt_handler_lookup(tmp, &d->timer_irq[1])) {          if (!interrupt_handler_lookup(tmp, &d->timer_irq[1])) {
1736                  fatal("Could not find interrupt '%s'.\n", tmp);                  fatal("Could not find interrupt '%s'.\n", tmp);
1737                  exit(1);                  exit(1);
1738          }          }
1739          snprintf(tmp, sizeof(tmp), "emul[0].machine[0].cpu[0].irq[0x%x]",          snprintf(tmp, sizeof(tmp), "machine[0].cpu[0].irq[0x%x]",
1740              SH_INTEVT_TMU2_TUNI2);              SH_INTEVT_TMU2_TUNI2);
1741          if (!interrupt_handler_lookup(tmp, &d->timer_irq[2])) {          if (!interrupt_handler_lookup(tmp, &d->timer_irq[2])) {
1742                  fatal("Could not find interrupt '%s'.\n", tmp);                  fatal("Could not find interrupt '%s'.\n", tmp);

Legend:
Removed from v.42  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26