1.1 --- a/src/sh4/sh4mmio.c Sun Jun 18 12:01:53 2006 +0000
1.2 +++ b/src/sh4/sh4mmio.c Tue Jan 23 08:17:06 2007 +0000
1.5 - * $Id: sh4mmio.c,v 1.9 2006-06-18 12:01:53 nkeynes Exp $
1.6 + * $Id: sh4mmio.c,v 1.10 2007-01-23 08:17:06 nkeynes Exp $
1.8 * Miscellaneous and not-really-implemented SH4 peripheral modules. Also
1.9 * responsible for including the IMPL side of the SH4 MMIO pages.
1.17 cache = mem_alloc_pages(2);
1.22 + mmio_region_MMU_write( CCR, 0 );
1.25 +void MMU_save_state( FILE *f )
1.27 + fwrite( cache, 4096, 2, f );
1.30 +int MMU_load_state( FILE *f )
1.32 + /* Setup the cache mode according to the saved register value
1.33 + * (mem_load runs before this point to load all MMIO data)
1.35 + mmio_region_MMU_write( CCR, MMIO_READ(MMU, CCR) );
1.36 + if( fread( cache, 4096, 2, f ) != 2 ) {
1.42 void mmu_set_cache_mode( int mode )