Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 23:1ec3acd0594d
prev10:c898b37506e0
next27:1ef09a52cd1e
author nkeynes
date Fri Dec 23 11:44:55 2005 +0000 (15 years ago)
permissions -rw-r--r--
last change Start of "real" time slices, general structure in place now
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Sun Dec 11 05:15:36 2005 +0000
1.2 +++ b/src/sh4/sh4core.h Fri Dec 23 11:44:55 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.h,v 1.3 2005-12-11 05:15:36 nkeynes Exp $
1.6 + * $Id: sh4core.h,v 1.4 2005-12-23 11:44:55 nkeynes Exp $
1.7 *
1.8 * This file defines the public functions exported by the SH4 core, except
1.9 * for disassembly functions defined in sh4dasm.h
1.10 @@ -20,6 +20,7 @@
1.11 #define sh4core_H 1
1.12
1.13 #include <stdint.h>
1.14 +#include <stdio.h>
1.15
1.16 #ifdef __cplusplus
1.17 extern "C" {
1.18 @@ -60,6 +61,10 @@
1.19 void sh4_set_pc( int );
1.20 void sh4_execute_instruction( void );
1.21 void sh4_raise_exception( int, int );
1.22 +void sh4_set_breakpoint( uint32_t pc, int type );
1.23 +
1.24 +#define BREAK_ONESHOT 1
1.25 +#define BREAK_PERM 2
1.26
1.27 /* SH4 Memory */
1.28 int32_t sh4_read_long( uint32_t addr );
1.29 @@ -70,7 +75,12 @@
1.30 void sh4_write_byte( uint32_t addr, uint32_t val );
1.31 int32_t sh4_read_phys_word( uint32_t addr );
1.32
1.33 -void run_timers( int );
1.34 +/* Peripheral functions */
1.35 +void DMAC_run_slice( int );
1.36 +void TMU_run_slice( int );
1.37 +void SCIF_run_slice( int );
1.38 +void SCIF_save_state( FILE *f );
1.39 +int SCIF_load_state( FILE *f );
1.40
1.41 #define SIGNEXT4(n) ((((int32_t)(n))<<28)>>28)
1.42 #define SIGNEXT8(n) ((int32_t)((int8_t)(n)))
.