4 * Support module for collecting instruction stats
6 * Copyright (c) 2005 Nathan Keynes.
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
21 I_ADD, I_ADDI, I_ADDC, I_ADDV,
22 I_AND, I_ANDI, I_ANDB,
23 I_BF, I_BFS, I_BRA, I_BRAF, I_BSR, I_BSRF, I_BT, I_BTS,
24 I_CLRMAC, I_CLRS, I_CLRT,
25 I_CMPEQ, I_CMPEQI, I_CMPGE, I_CMPGT, I_CMPHI, I_CMPHS, I_CMPPL, I_CMPPZ, I_CMPSTR,
26 I_DIV0S, I_DIV0U, I_DIV1,
27 I_DMULS, I_DMULU, I_DT,
28 I_EXTSB, I_EXTSW, I_EXTUB, I_EXTUW, I_FABS,
29 I_FADD, I_FCMPEQ, I_FCMPGT, I_FCNVDS, I_FCNVSD, I_FDIV, I_FIPR, I_FLDS,
30 I_FLDI0, I_FLDI1, I_FLOAT, I_FMAC, I_FMOV1, I_FMOV2, I_FMOV3, I_FMOV4,
31 I_FMOV5, I_FMOV6, I_FMOV7, I_FMUL, I_FNEG, I_FRCHG, I_FSCA, I_FSCHG,
32 I_FSQRT, I_FSRRA, I_FSTS, I_FSUB, I_FTRC, I_FTRV,
34 I_LDCSR, I_LDC, I_LDCSRM, I_LDCM, I_LDS, I_LDSM, I_LDTLB,
36 I_MOV, I_MOVI, I_MOVB, I_MOVL, I_MOVLPC, I_MOVW, I_MOVA, I_MOVCA, I_MOVT,
37 I_MULL, I_MULSW, I_MULUW,
38 I_NEG, I_NEGC, I_NOP, I_NOT,
39 I_OCBI, I_OCBP, I_OCBWB,
42 I_ROTCL, I_ROTCR, I_ROTL, I_ROTR,
45 I_SHAD, I_SHAL, I_SHAR, I_SHLD, I_SHLL, I_SHLR,
47 I_STCSR, I_STC, I_STCSRM, I_STCM, I_STS, I_STSM,
48 I_SUB, I_SUBC, I_SUBV,
49 I_SWAPB, I_SWAPW, I_TASB,
51 I_TST, I_TSTI, I_TSTB,
52 I_XOR, I_XORI, I_XORB,
56 #define SH4_INSTRUCTION_COUNT I_UNDEF
58 void sh4_stats_reset( void );
59 void sh4_stats_print( FILE *out );
60 void sh4_stats_add( uint32_t pc );
.