Search
lxdream.org :: lxdream/src/sh4/intc.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/intc.c
changeset 929:fd8cb0c82f5f
prev736:a02d1475ccfd
next975:007bf7eb944f
author nkeynes
date Sat Dec 20 03:01:40 2008 +0000 (12 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change First pass experiment using cached decoding.
file annotate diff log raw
1.1 --- a/src/sh4/intc.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/sh4/intc.c Sat Dec 20 03:01:40 2008 +0000
1.3 @@ -53,8 +53,9 @@
1.4 int priority[INT_NUM_SOURCES];
1.5 } intc_state;
1.6
1.7 -void mmio_region_INTC_write( uint32_t reg, uint32_t val )
1.8 +MMIO_REGION_WRITE_FN( INTC, reg, val )
1.9 {
1.10 + reg &= 0xFFF;
1.11 /* Well it saves having to use an intermediate table... */
1.12 switch( reg ) {
1.13 case ICR: /* care about this later */
1.14 @@ -95,9 +96,9 @@
1.15 MMIO_WRITE( INTC, reg, val );
1.16 }
1.17
1.18 -int32_t mmio_region_INTC_read( uint32_t reg )
1.19 +MMIO_REGION_READ_FN( INTC, reg )
1.20 {
1.21 - return MMIO_READ( INTC, reg );
1.22 + return MMIO_READ( INTC, reg & 0xFFF );
1.23 }
1.24
1.25 void INTC_reset()
.