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 |
* |
* |
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); |