Search
lxdream.org :: lxdream/src/sh4/sh4mmio.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mmio.c
changeset 830:73637b9624e4
prev736:a02d1475ccfd
next929:fd8cb0c82f5f
author nkeynes
date Thu Oct 30 00:06:49 2008 +0000 (15 years ago)
permissions -rw-r--r--
last change Change xlat_get_native_pc to pass in the expected code region - this lets the Mac
unwind implementation range test the IP address (which works) rather than EBP
(which doesn't for some reason).

Remove the test in configure that prevents fomit-frame-pointer being used in Mac
builds.
file annotate diff log raw
1.1 --- a/src/sh4/sh4mmio.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/sh4/sh4mmio.c Thu Oct 30 00:06:49 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 *************************************/
.