Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 934:3acd3b3ee6d1
prev931:430048ea8b71
next935:45246788ca00
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/sh4.c Tue Dec 23 05:48:05 2008 +0000
1.2 +++ b/src/sh4/sh4.c Fri Dec 26 14:25:23 2008 +0000
1.3 @@ -52,10 +52,6 @@
1.4 struct sh4_registers sh4r __attribute__((aligned(16)));
1.5 struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS];
1.6 int sh4_breakpoint_count = 0;
1.7 -sh4ptr_t sh4_main_ram;
1.8 -sh4ptr_t dc_boot_rom;
1.9 -sh4ptr_t dc_flash_ram;
1.10 -sh4ptr_t dc_audio_ram;
1.11
1.12 gboolean sh4_starting = FALSE;
1.13 static gboolean sh4_use_translator = FALSE;
1.14 @@ -83,10 +79,6 @@
1.15 void sh4_init(void)
1.16 {
1.17 register_io_regions( mmio_list_sh4mmio );
1.18 - sh4_main_ram = mem_get_region_by_name(MEM_REGION_MAIN);
1.19 - dc_boot_rom = mem_get_region_by_name(MEM_REGION_BIOS);
1.20 - dc_flash_ram = mem_get_region_by_name(MEM_REGION_FLASH);
1.21 - dc_audio_ram = mem_get_region_by_name(MEM_REGION_AUDIO);
1.22 TMU_init();
1.23 sh4_mem_init();
1.24 sh4_reset();
.