Search
lxdream.org :: lxdream/src/sh4/mmu.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/mmu.c
changeset 934:3acd3b3ee6d1
prev933:880c37bb1909
next939:6f2302afeb89
author nkeynes
date Fri Dec 26 14:25:23 2008 +0000 (13 years ago)
branchlxdream-mem
permissions -rw-r--r--
last change Change RAM regions to use static arrays rather than mmap regions, for a 2-3% performance gain.
General mem cleanups, including some save state fixes that break states again.
file annotate diff log raw
1.1 --- a/src/sh4/mmu.c Wed Dec 24 06:06:23 2008 +0000
1.2 +++ b/src/sh4/mmu.c Fri Dec 26 14:25:23 2008 +0000
1.3 @@ -22,6 +22,7 @@
1.4 #include "sh4/sh4mmio.h"
1.5 #include "sh4/sh4core.h"
1.6 #include "sh4/sh4trans.h"
1.7 +#include "dreamcast.h"
1.8 #include "mem.h"
1.9 #include "mmu.h"
1.10
1.11 @@ -850,13 +851,13 @@
1.12 sh4_icache.page_vma = addr & 0xFF000000;
1.13 sh4_icache.page_ppa = 0x0C000000;
1.14 sh4_icache.mask = 0xFF000000;
1.15 - sh4_icache.page = sh4_main_ram;
1.16 + sh4_icache.page = dc_main_ram;
1.17 } else if( (addr & 0x1FE00000) == 0 ) {
1.18 /* BIOS ROM */
1.19 sh4_icache.page_vma = addr & 0xFFE00000;
1.20 sh4_icache.page_ppa = 0;
1.21 sh4_icache.mask = 0xFFE00000;
1.22 - sh4_icache.page = mem_get_region(0);
1.23 + sh4_icache.page = dc_boot_rom;
1.24 } else {
1.25 /* not supported */
1.26 sh4_icache.page_vma = -1;
.