Search
lxdream.org :: lxdream/src/sh4/sh4stat.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4stat.h
changeset 671:a530ea88eebd
prev561:533f6b478071
next673:44c579439d73
author nkeynes
date Thu May 15 10:22:39 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Permanently add SH4 instruction statistics tracking (enabled with --enable-sh4stats)
file annotate diff log raw
1.1 --- a/src/sh4/sh4stat.h Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/sh4/sh4stat.h Thu May 15 10:22:39 2008 +0000
1.3 @@ -16,7 +16,13 @@
1.4 * GNU General Public License for more details.
1.5 */
1.6
1.7 -enum sh4_inst_id {
1.8 +#ifndef lxdream_sh4stat_H
1.9 +#define lxdream_sh4stat_H
1.10 +
1.11 +#include <stdio.h>
1.12 +#include <stdint.h>
1.13 +
1.14 +typedef enum {
1.15 I_UNKNOWN,
1.16 I_ADD, I_ADDI, I_ADDC, I_ADDV,
1.17 I_AND, I_ANDI, I_ANDB,
1.18 @@ -51,10 +57,14 @@
1.19 I_TST, I_TSTI, I_TSTB,
1.20 I_XOR, I_XORI, I_XORB,
1.21 I_XTRCT,
1.22 - I_UNDEF };
1.23 + I_UNDEF } sh4_inst_id;
1.24
1.25 #define SH4_INSTRUCTION_COUNT I_UNDEF
1.26
1.27 void sh4_stats_reset( void );
1.28 void sh4_stats_print( FILE *out );
1.29 -void sh4_stats_add( uint32_t pc );
1.30 +void sh4_stats_add( sh4_inst_id id );
1.31 +void sh4_stats_add_by_pc( uint32_t pc );
1.32 +
1.33 +
1.34 +#endif /* !lxdream_sh4stat_H */
.