Search
lxdream.org :: lxdream :: r830:73637b9624e4
lxdream 0.9.1
released Jun 29
Download Now
changeset830:73637b9624e4
parent829:517425d04f1b
child831:677a887f3e06
authornkeynes
dateMon Aug 25 11:29:24 2008 +0000 (11 years ago)
Start unstubifying the UBC module
src/sh4/sh4mmio.c
1.1 --- a/src/sh4/sh4mmio.c Mon Aug 25 09:16:44 2008 +0000
1.2 +++ b/src/sh4/sh4mmio.c Mon Aug 25 11:29:24 2008 +0000
1.3 @@ -90,7 +90,31 @@
1.4
1.5 /********************************* UBC *************************************/
1.6
1.7 -MMIO_REGION_STUBFNS( UBC )
1.8 +int32_t mmio_region_UBC_read( uint32_t reg )
1.9 +{
1.10 + return MMIO_READ( UBC, reg );
1.11 +}
1.12 +
1.13 +void mmio_region_UBC_write( uint32_t reg, uint32_t val )
1.14 +{
1.15 + switch( reg ) {
1.16 + case BAMRA:
1.17 + case BAMRB:
1.18 + val &= 0x0F;
1.19 + break;
1.20 + case BBRA:
1.21 + case BBRB:
1.22 + val &= 0x07F;
1.23 + if( val != 0 ) {
1.24 + WARN( "UBC not implemented" );
1.25 + }
1.26 + break;
1.27 + case BRCR:
1.28 + val &= 0xC4C9;
1.29 + break;
1.30 + }
1.31 + MMIO_WRITE( UBC, reg, val );
1.32 +}
1.33
1.34
1.35 /********************************** SCI *************************************/
.