Search
lxdream.org :: lxdream/src/sh4/intc.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/intc.c
changeset 421:e51bf0aedd90
prev265:5daf59b7f31b
next561:533f6b478071
author nkeynes
date Sat Nov 17 06:04:19 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Don't build the translator if the architecture is unsupported. Also tidy things up a little to allow (theoretically) different translators to be selected at build time.
file annotate diff log raw
1.1 --- a/src/sh4/intc.c Sat Jan 06 04:06:36 2007 +0000
1.2 +++ b/src/sh4/intc.c Sat Nov 17 06:04:19 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: intc.c,v 1.7 2007-01-06 04:06:36 nkeynes Exp $
1.6 + * $Id: intc.c,v 1.8 2007-10-06 08:52:08 nkeynes Exp $
1.7 *
1.8 * SH4 onboard interrupt controller (INTC) implementation
1.9 *
1.10 @@ -38,7 +38,7 @@
1.11 { "RTC_ATI",0x480 },{ "RTC_PRI",0x4A0 },{ "RTC_CUI",0x4C0 },
1.12 { "SCI_ERI",0x4E0 },{ "SCI_RXI",0x500 },{ "SCI_TXI",0x520 },
1.13 { "SCI_TEI",0x540 },
1.14 - { "SCIF_ERI",0x700 },{ "SCIF_RXI",0x720, 0 },{ "SCIF_BRI",0x740 },
1.15 + { "SCIF_ERI",0x700 },{ "SCIF_RXI",0x720 },{ "SCIF_BRI",0x740 },
1.16 { "SCIF_TXI",0x760 },
1.17 { "WDT_ITI",0x560 },{ "RCMI",0x580 }, { "ROVI",0x5A0 } };
1.18
1.19 @@ -165,7 +165,8 @@
1.20 if( intc_state.pending[i] == which ) {
1.21 /* Shift array contents down */
1.22 while( i < intc_state.num_pending-1 ) {
1.23 - intc_state.pending[i] = intc_state.pending[++i];
1.24 + intc_state.pending[i] = intc_state.pending[i+1];
1.25 + i++;
1.26 }
1.27 intc_state.num_pending--;
1.28 intc_mask_changed();
.