Search
lxdream.org :: lxdream/src/sh4/sh4.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4.c
changeset 418:b9b14afa0959
prev412:d58e4d69de16
next422:61a0598e07ff
author nkeynes
date Sat Oct 06 08:52:08 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix undefined statement and other warning
file annotate diff log raw
1.1 --- a/src/sh4/sh4.c Mon Oct 01 11:51:25 2007 +0000
1.2 +++ b/src/sh4/sh4.c Sat Oct 06 08:52:08 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4.c,v 1.3 2007-10-01 11:51:25 nkeynes Exp $
1.6 + * $Id: sh4.c,v 1.4 2007-10-04 08:47:52 nkeynes Exp $
1.7 *
1.8 * SH4 parent module for all CPU modes and SH4 peripheral
1.9 * modules.
1.10 @@ -48,6 +48,7 @@
1.11 struct sh4_registers sh4r;
1.12 struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS];
1.13 int sh4_breakpoint_count = 0;
1.14 +extern char *sh4_main_ram;
1.15
1.16 void sh4_set_use_xlat( gboolean use )
1.17 {
1.18 @@ -63,6 +64,7 @@
1.19 void sh4_init(void)
1.20 {
1.21 register_io_regions( mmio_list_sh4mmio );
1.22 + sh4_main_ram = mem_get_region_by_name(MEM_REGION_MAIN);
1.23 MMU_init();
1.24 sh4_reset();
1.25 }
.