Search
lxdream.org :: lxdream/src/sh4/sh4core.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4core.h
changeset 53:f2981805b929
prev43:0cf3e339cc59
next54:d8b73031289c
author nkeynes
date Thu Dec 29 12:52:29 2005 +0000 (14 years ago)
permissions -rw-r--r--
last change Rewrite timer to be more accurate, also support cycle precision in the future
file annotate diff log raw
1.1 --- a/src/sh4/sh4core.h Mon Dec 26 11:47:15 2005 +0000
1.2 +++ b/src/sh4/sh4core.h Thu Dec 29 12:52:29 2005 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: sh4core.h,v 1.8 2005-12-26 11:47:15 nkeynes Exp $
1.6 + * $Id: sh4core.h,v 1.9 2005-12-29 12:52:29 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 @@ -70,6 +70,7 @@
1.11 uint32_t int_pending; /* flag set by the INTC = pending priority level */
1.12 int in_delay_slot; /* flag to indicate the current instruction is in
1.13 * a delay slot (certain rules apply) */
1.14 + uint32_t slice_cycle; /* Current cycle within the timeslice */
1.15 int sh4_state; /* Current power-on state (one of the SH4_STATE_* values ) */
1.16 };
1.17
1.18 @@ -106,6 +107,10 @@
1.19 /* Peripheral functions */
1.20 void DMAC_run_slice( uint32_t );
1.21 void TMU_run_slice( uint32_t );
1.22 +void TMU_update_clocks( void );
1.23 +void TMU_reset( void );
1.24 +void TMU_save_state( FILE * );
1.25 +int TMU_load_state( FILE * );
1.26 void SCIF_reset( void );
1.27 void SCIF_run_slice( uint32_t );
1.28 void SCIF_save_state( FILE *f );
.