Search
lxdream.org :: lxdream/src/sh4/dmac.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/dmac.c
changeset 929:fd8cb0c82f5f
prev736:a02d1475ccfd
next975:007bf7eb944f
author nkeynes
date Sat Dec 20 03:01:40 2008 +0000 (11 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/dmac.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/sh4/dmac.c Sat Dec 20 03:01:40 2008 +0000
1.3 @@ -82,13 +82,14 @@
1.4 */
1.5 }
1.6
1.7 -int32_t mmio_region_DMAC_read( uint32_t reg )
1.8 +MMIO_REGION_READ_FN( DMAC, reg )
1.9 {
1.10 - return MMIO_READ( DMAC, reg );
1.11 + return MMIO_READ( DMAC, reg&0xFFF );
1.12 }
1.13
1.14 -void mmio_region_DMAC_write( uint32_t reg, uint32_t val )
1.15 +MMIO_REGION_WRITE_FN( DMAC, reg, val )
1.16 {
1.17 + reg &= 0xFFF;
1.18 switch( reg ) {
1.19 case DMAOR:
1.20 MMIO_WRITE( DMAC, reg, val );
.