Search
lxdream.org :: lxdream/src/sh4/sh4mem.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4mem.c
changeset 137:41907543d890
prev130:279acbacc298
next150:c728a442b43f
author nkeynes
date Sun Apr 30 01:50:15 2006 +0000 (14 years ago)
permissions -rw-r--r--
last change Commit semi-correct G2-bus event register handling
file annotate diff log raw
1.1 --- a/src/sh4/sh4mem.c Thu Mar 30 11:26:45 2006 +0000
1.2 +++ b/src/sh4/sh4mem.c Sun Apr 30 01:50:15 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4mem.c,v 1.9 2006-03-30 11:26:45 nkeynes Exp $
1.6 + * $Id: sh4mem.c,v 1.10 2006-04-30 01:50:15 nkeynes Exp $
1.7 * sh4mem.c is responsible for the SH4's access to memory (including memory
1.8 * mapped I/O), using the page maps created in mem.c
1.9 *
1.10 @@ -234,9 +234,15 @@
1.11 sh4_stop();
1.12 return;
1.13 }
1.14 + if( (addr&0x1F800000) == 0x00800000 )
1.15 + asic_g2_write_word();
1.16 +
1.17 page = page_map[ (addr & 0x1FFFFFFF) >> 12 ];
1.18 if( ((uint32_t)page) < MAX_IO_REGIONS ) { /* IO Region */
1.19 if( page == NULL ) {
1.20 + if( (addr & 0x1F000000) >= 0x04000000 &&
1.21 + (addr & 0x1F000000) < 0x07000000 )
1.22 + return;
1.23 ERROR( "Long write to missing page: %08X => %08X", val, addr );
1.24 return;
1.25 }
.