Line 89... |
Line 89... |
struct raw_stats {
|
struct raw_stats {
|
int reg[64];
|
int reg[64];
|
int range[RAW_RANGE];
|
int range[RAW_RANGE];
|
}; /* RAW hazard stats */
|
}; /* RAW hazard stats */
|
|
|
|
#define SLP_MEMREAD 0
|
|
#define SLP_MEMWRITE 1
|
|
struct slp_stats {
|
|
int maxdepth;
|
|
int curdepth;
|
|
int calls;
|
|
int supercalls;
|
|
int supercnt;
|
|
struct memaccess {
|
|
struct memaccess *next;
|
|
unsigned long addr;
|
|
char type; /* bit 0: read; bit 1: write */
|
|
};
|
|
}; /* SLP */
|
|
|
extern struct mstats_entry mstats;
|
extern struct mstats_entry mstats;
|
extern struct sstats_entry sstats[SSTATS_LEN];
|
extern struct sstats_entry sstats[SSTATS_LEN];
|
extern struct dstats_entry dstats[DSTATS_LEN];
|
extern struct dstats_entry dstats[DSTATS_LEN];
|
extern struct fstats_entry fstats[FSTATS_LEN];
|
extern struct fstats_entry fstats[FSTATS_LEN];
|
extern struct cachestats_entry ic_stats;
|
extern struct cachestats_entry ic_stats;
|
extern struct cachestats_entry dc_stats;
|
extern struct cachestats_entry dc_stats;
|
extern struct raw_stats raw_stats;
|
extern struct raw_stats raw_stats;
|
|
extern struct slp_stats slp_stats;
|
|
|
extern int check_depend();
|
extern int check_depend();
|
extern void addsstats(char *item, int cnt_dynamic, int cnt_static);
|
extern void addsstats(char *item, int cnt_dynamic, int cnt_static);
|
extern void adddstats(char *item1, char *item2, int cnt_dynamic, int depend);
|
extern void adddstats(char *item1, char *item2, int cnt_dynamic, int depend);
|
extern void addfstats(enum insn_type item1, enum insn_type item2, int cnt_dynamic, int depend);
|
extern void addfstats(enum insn_type item1, enum insn_type item2, int cnt_dynamic, int depend);
|