Search
lxdream.org :: lxdream :: r642:c7383f21f122
lxdream 0.9.1
released Jun 29
Download Now
changeset642:c7383f21f122
parent641:afb9a42c61c6
child643:653b0a70f173
authornkeynes
dateTue Feb 26 01:06:59 2008 +0000 (12 years ago)
Quick hack to get s3mplay working again - not likely to be remotely correct
src/aica/aica.c
src/aica/armcore.c
1.1 --- a/src/aica/aica.c Mon Feb 25 23:40:10 2008 +0000
1.2 +++ b/src/aica/aica.c Tue Feb 26 01:06:59 2008 +0000
1.3 @@ -82,7 +82,7 @@
1.4 aica_state.nanosecs_done = 0;
1.5 aica_state.event_pending = 0;
1.6 aica_state.clear_count = 0;
1.7 - aica_event(2); /* Pre-deliver a timer interrupt */
1.8 +// aica_event(2); /* Pre-deliver a timer interrupt */
1.9 }
1.10
1.11 void aica_start( void )
2.1 --- a/src/aica/armcore.c Mon Feb 25 23:40:10 2008 +0000
2.2 +++ b/src/aica/armcore.c Tue Feb 26 01:06:59 2008 +0000
2.3 @@ -113,15 +113,13 @@
2.4 }
2.5
2.6 k = MMIO_READ( AICA2, AICA_TCR );
2.7 - if( k & 0x40 ) {
2.8 - uint8_t val = MMIO_READ( AICA2, AICA_TIMER );
2.9 - val++;
2.10 - if( val == 0 ) {
2.11 - aica_event( AICA_EVENT_TIMER );
2.12 - MMIO_WRITE( AICA2, AICA_TCR, k & ~0x40 );
2.13 - }
2.14 - MMIO_WRITE( AICA2, AICA_TIMER, val );
2.15 + uint8_t val = MMIO_READ( AICA2, AICA_TIMER );
2.16 + val++;
2.17 + if( val == 0 ) {
2.18 + aica_event( AICA_EVENT_TIMER );
2.19 + // MMIO_WRITE( AICA2, AICA_TCR, k & ~0x40 );
2.20 }
2.21 + MMIO_WRITE( AICA2, AICA_TIMER, val );
2.22 if( !dreamcast_is_running() )
2.23 break;
2.24 }
.