Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 15:5194dd0fdb60
prev10:c898b37506e0
next16:f383e7640da4
author nkeynes
date Mon Dec 12 13:11:11 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Add dreamcast_module module structure
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Sun Dec 11 05:15:36 2005 +0000
1.2 +++ b/src/sh4/sh4core.c Mon Dec 12 13:11:11 2005 +0000
1.3 @@ -1,16 +1,21 @@
1.4 #include <math.h>
1.5 #include "dream.h"
1.6 +#include "modules.h"
1.7 #include "sh4core.h"
1.8 #include "sh4mmio.h"
1.9 #include "mem.h"
1.10 #include "intc.h"
1.11
1.12 +struct dreamcast_module sh4_module = { "SH4", sh4_init, sh4_reset,
1.13 + NULL, sh4_stop,
1.14 + NULL, NULL };
1.15 +
1.16 struct sh4_registers sh4r;
1.17 -
1.18 static int running = 0;
1.19
1.20 void sh4_init(void)
1.21 {
1.22 + mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
1.23 register_io_regions( mmio_list_sh4mmio );
1.24 mmu_init();
1.25 }
.