Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 378:f10fbdd4e24b
prev374:8f80a795513e
next391:16afb90b5d47
author nkeynes
date Wed Sep 12 09:20:38 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Start splitting the common SH4 parts into sh4.c, with sh4core.c to become
just the emulation core.
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Tue Sep 11 02:14:46 2007 +0000
1.2 +++ b/src/sh4/sh4core.h Wed Sep 12 09:20:38 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.h,v 1.22 2007-09-11 02:14:46 nkeynes Exp $
1.6 + * $Id: sh4core.h,v 1.23 2007-09-12 09:20:38 nkeynes Exp $
1.7 *
1.8 * This file defines the internal functions exported/used by the SH4 core,
1.9 * except for disassembly functions defined in sh4dasm.h
1.10 @@ -23,6 +23,7 @@
1.11 #include <glib/gtypes.h>
1.12 #include <stdint.h>
1.13 #include <stdio.h>
1.14 +#include "mem.h"
1.15
1.16 #ifdef __cplusplus
1.17 extern "C" {
1.18 @@ -80,9 +81,12 @@
1.19 };
1.20
1.21 extern struct sh4_registers sh4r;
1.22 +extern struct breakpoint_struct sh4_breakpoints[MAX_BREAKPOINTS];
1.23 +extern int sh4_breakpoint_count;
1.24 +
1.25
1.26 /* Public functions */
1.27 -
1.28 +void sh4_set_use_xlat( gboolean use );
1.29 void sh4_init( void );
1.30 void sh4_reset( void );
1.31 void sh4_run( void );
1.32 @@ -91,6 +95,7 @@
1.33 int sh4_isrunning( void );
1.34 void sh4_stop( void );
1.35 void sh4_set_pc( int );
1.36 +
1.37 gboolean sh4_execute_instruction( void );
1.38 gboolean sh4_raise_exception( int );
1.39 gboolean sh4_raise_slot_exception( int, int );
1.40 @@ -98,6 +103,7 @@
1.41 void sh4_set_breakpoint( uint32_t pc, int type );
1.42 gboolean sh4_clear_breakpoint( uint32_t pc, int type );
1.43 int sh4_get_breakpoint( uint32_t pc );
1.44 +void sh4_accept_interrupt( void );
1.45
1.46 #define BREAK_ONESHOT 1
1.47 #define BREAK_PERM 2
.