Search
lxdream.org :: lxdream/src/sh4/sh4mmio.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mmio.c
changeset 929:fd8cb0c82f5f
prev830:73637b9624e4
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/sh4mmio.c Mon Aug 25 11:29:24 2008 +0000
1.2 +++ b/src/sh4/sh4mmio.c Sat Dec 20 03:01:40 2008 +0000
1.3 @@ -72,9 +72,10 @@
1.4
1.5 MMIO_REGION_WRITE_DEFFN(BSC)
1.6
1.7 -int32_t mmio_region_BSC_read( uint32_t reg )
1.8 +MMIO_REGION_READ_FN( BSC, reg )
1.9 {
1.10 int32_t val;
1.11 + reg &= 0xFFF;
1.12 switch( reg ) {
1.13 case PDTRA:
1.14 val = bsc_read_pdtra();
1.15 @@ -90,13 +91,14 @@
1.16
1.17 /********************************* UBC *************************************/
1.18
1.19 -int32_t mmio_region_UBC_read( uint32_t reg )
1.20 +MMIO_REGION_READ_FN( UBC, reg )
1.21 {
1.22 - return MMIO_READ( UBC, reg );
1.23 + return MMIO_READ( UBC, reg & 0xFFF );
1.24 }
1.25
1.26 -void mmio_region_UBC_write( uint32_t reg, uint32_t val )
1.27 +MMIO_REGION_WRITE_FN( UBC, reg, val )
1.28 {
1.29 + reg &= 0xFFF;
1.30 switch( reg ) {
1.31 case BAMRA:
1.32 case BAMRB:
.