1 #ifndef _ADDPREFETCHENHANCE_H_
2 #define _ADDPREFETCHENHANCE_H_
8 typedef struct prefetchCountStats {
9 int retrycount; /* keeps track of when to retry and check if we can turn on this prefetch site */
10 int uselesscount; /* keeps track of how long was the prefetching at site useles */
11 char operMode; /* 1 = on , 0 = off */
15 pfcstats_t *initPrefetchStats();
16 int getRetryCount(int siteid);
17 int getUselessCount(int siteid);
18 char getOperationMode(int);
19 void handleDynPrefetching(int, int, int);
20 void cleanPCache(thread_data_array_t *tdata);
21 int updatePrefetchCache(thread_data_array_t *);
22 int copyToCache(int , unsigned int *, thread_data_array_t *, char );