00001 00002 #ifndef MCSIMDEFS_H 00003 #define MCSIMDEFS_H 00004 00005 typedef unsigned long long InstructionNumber; 00006 //typedef unsigned long long CycleCount; 00007 typedef double CycleCount; 00008 typedef unsigned long long Address; 00009 00010 00011 // Stall reasons 00012 /*** 00013 enum StallReason { 00014 CPII, I_CACHE, L1_CACHE, L2_CACHE, MEMORY, 00015 INT_DEP, INT_USE_DEP, INT_DSU_DEP, 00016 FGU_DEP, BRANCH_MP, BRANCH_ST, 00017 P_FLUSH, STB_FULL, SPCL_LOAD, LD_STB, 00018 TLB_MISS, ITLB_MISS, NUMSTALLREASONS 00019 }; 00020 ***/ 00021 00022 double my_rand(void); 00023 00024 #endif