Search
lxdream.org :: lxdream/src/sh4/sh4stat.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/sh4/sh4stat.h
changeset 387:38e9fddbf0e3
next422:61a0598e07ff
author nkeynes
date Tue Sep 18 08:58:23 2007 +0000 (13 years ago)
permissions -rw-r--r--
last change Add instruction statistics gathering module
file annotate diff log raw
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/sh4/sh4stat.h Tue Sep 18 08:58:23 2007 +0000
1.3 @@ -0,0 +1,56 @@
1.4 +/**
1.5 + * $Id: sh4stat.h,v 1.1 2007-09-18 08:58:23 nkeynes Exp $
1.6 + *
1.7 + * Support module for collecting instruction stats
1.8 + *
1.9 + * Copyright (c) 2005 Nathan Keynes.
1.10 + *
1.11 + * This program is free software; you can redistribute it and/or modify
1.12 + * it under the terms of the GNU General Public License as published by
1.13 + * the Free Software Foundation; either version 2 of the License, or
1.14 + * (at your option) any later version.
1.15 + *
1.16 + * This program is distributed in the hope that it will be useful,
1.17 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
1.18 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.19 + * GNU General Public License for more details.
1.20 + */
1.21 +
1.22 +enum sh4_inst_id {
1.23 + I_UNKNOWN,
1.24 + I_ADD, I_ADDI, I_ADDC, I_ADDV,
1.25 + I_AND, I_ANDI, I_ANDB,
1.26 + I_BF, I_BFS, I_BRA, I_BRAF, I_BSR, I_BSRF, I_BT, I_BTS,
1.27 + I_CLRMAC, I_CLRS, I_CLRT,
1.28 + I_CMPEQ, I_CMPEQI, I_CMPGE, I_CMPGT, I_CMPHI, I_CMPHS, I_CMPPL, I_CMPPZ, I_CMPSTR,
1.29 + I_DIV0S, I_DIV0U, I_DIV1,
1.30 + I_DMULS, I_DMULU, I_DT,
1.31 + I_EXTSB, I_EXTSW, I_EXTUB, I_EXTUW, I_FABS,
1.32 + I_FADD, I_FCMPEQ, I_FCMPGT, I_FCNVDS, I_FCNVSD, I_FDIV, I_FIPR, I_FLDS,
1.33 + I_FLDI0, I_FLDI1, I_FLOAT, I_FMAC, I_FMOV1, I_FMOV2, I_FMOV3, I_FMOV4,
1.34 + I_FMOV5, I_FMOV6, I_FMOV7, I_FMUL, I_FNEG, I_FRCHG, I_FSCA, I_FSCHG,
1.35 + I_FSQRT, I_FSRRA, I_FSTS, I_FSUB, I_FTRC, I_FTRV,
1.36 + I_JMP, I_JSR,
1.37 + I_LDCSR, I_LDC, I_LDCSRM, I_LDCM, I_LDS, I_LDSM, I_LDTLB,
1.38 + I_MACL, I_MACW,
1.39 + I_MOV, I_MOVI, I_MOVB, I_MOVL, I_MOVLPC, I_MOVW, I_MOVA, I_MOVCA, I_MOVT,
1.40 + I_MULL, I_MULSW, I_MULUW,
1.41 + I_NEG, I_NEGC, I_NOP, I_NOT,
1.42 + I_OCBI, I_OCBP, I_OCBWB,
1.43 + I_OR, I_ORI, I_ORB,
1.44 + I_PREF,
1.45 + I_ROTCL, I_ROTCR, I_ROTL, I_ROTR,
1.46 + I_RTE, I_RTS,
1.47 + I_SETS, I_SETT,
1.48 + I_SHAD, I_SHAL, I_SHAR, I_SHLD, I_SHLL, I_SHLR,
1.49 + I_SLEEP,
1.50 + I_STCSR, I_STC, I_STCSRM, I_STCM, I_STS, I_STSM,
1.51 + I_SUB, I_SUBC, I_SUBV,
1.52 + I_SWAPB, I_SWAPW, I_TASB,
1.53 + I_TRAPA,
1.54 + I_TST, I_TSTI, I_TSTB,
1.55 + I_XOR, I_XORI, I_XORB,
1.56 + I_XTRCT,
1.57 + I_UNDEF };
1.58 +
1.59 +#define SH4_INSTRUCTION_COUNT I_UNDEF
.