1.1 --- a/src/dreamcast.c Thu Nov 22 11:10:15 2007 +0000
1.2 +++ b/src/dreamcast.c Tue Feb 12 08:38:19 2008 +0000
1.5 - * $Id: dreamcast.c,v 1.28 2007-10-31 11:53:35 nkeynes Exp $
1.7 * Central switchboard for the system. This pulls all the individual modules
1.8 * together into some kind of coherent structure. This is also where you'd
1.9 * add Naomi support, if I ever get a board to play with...
1.11 #include "dreamcast.h"
1.12 #include "gdrom/ide.h"
1.13 #include "maple/maple.h"
1.14 +#include "sh4/sh4trans.h"
1.17 * Current state of the DC virtual machine
1.19 void dreamcast_reset( void )
1.22 + if( sh4_xlat_is_running() ) {
1.23 + sh4_translate_exit( XLAT_EXIT_SYSRESET );
1.25 for( i=0; i<num_modules; i++ ) {
1.26 if( modules[i]->reset != NULL )
1.27 modules[i]->reset();
1.30 void dreamcast_stop( void )
1.32 + if( sh4_xlat_is_running() ) {
1.33 + sh4_translate_exit( XLAT_EXIT_HALT );
1.35 if( dreamcast_state == STATE_RUNNING )
1.36 dreamcast_state = STATE_STOPPING;
1.39 dreamcast_program_name = g_strdup(name);
1.40 dreamcast_entry_point = entry_point;
1.41 sh4_set_pc(entry_point);
1.42 - if( !dreamcast_has_bios ) {