diff --git a/lib/Stat.cc b/lib/Stat.cc index 9a025225..ed568517 100644 --- a/lib/Stat.cc +++ b/lib/Stat.cc @@ -11,6 +11,7 @@ bool PmuStat::pmu_initialized=false; void PmuStat::init(const char *regname) { +#ifdef __x86_64__ name = regname; if (!pmu_initialized) { @@ -19,9 +20,11 @@ void PmuStat::init(const char *regname) pmu_init(); } clear(); +#endif } void PmuStat::clear(void) { +#ifdef __x86_64__ count = 0; tregion = 0; pmc0 = 0; @@ -32,9 +35,11 @@ void PmuStat::clear(void) tcycles = 0; reads = 0; writes = 0; +#endif } void PmuStat::print(void) { +#ifdef __x86_64__ std::cout <<"Reg "<