Search
lxdream.org :: lxdream/src/sh4/sh4core.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.c
changeset 16:f383e7640da4
prev15:5194dd0fdb60
next18:9a1b5d75703f
author nkeynes
date Tue Dec 13 12:17:26 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Cleanup init config => dreamcast_config
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.c Mon Dec 12 13:11:11 2005 +0000
1.2 +++ b/src/sh4/sh4core.c Tue Dec 13 12:17:26 2005 +0000
1.3 @@ -6,16 +6,18 @@
1.4 #include "mem.h"
1.5 #include "intc.h"
1.6
1.7 +void sh4_save( FILE *f );
1.8 +void sh4_load( FILE *f );
1.9 +
1.10 struct dreamcast_module sh4_module = { "SH4", sh4_init, sh4_reset,
1.11 NULL, sh4_stop,
1.12 - NULL, NULL };
1.13 + sh4_save, sh4_load };
1.14
1.15 struct sh4_registers sh4r;
1.16 static int running = 0;
1.17
1.18 void sh4_init(void)
1.19 {
1.20 - mem_create_ram_region( 0x0C000000, 16 MB, MEM_REGION_MAIN );
1.21 register_io_regions( mmio_list_sh4mmio );
1.22 mmu_init();
1.23 }
1.24 @@ -43,6 +45,17 @@
1.25 running = 0;
1.26 }
1.27
1.28 +void sh4_save( FILE *f )
1.29 +{
1.30 + fwrite( &sh4r, sizeof(sh4r), 1, f );
1.31 + /* Save all additional on-board MMIO state */
1.32 +}
1.33 +
1.34 +void sh4_load( FILE * f )
1.35 +{
1.36 +
1.37 +}
1.38 +
1.39 void sh4_run(void)
1.40 {
1.41 running = 1;
.