From b4c10bd6800b5ab5adee3035f1908d7a49a14ca9 Mon Sep 17 00:00:00 2001 From: Joel Hestness Date: Sun, 6 Feb 2011 22:14:17 -0800 Subject: mcpat: Adds McPAT performance counters Updated patches from Rick Strong's set that modify performance counters for McPAT --- src/sim/system.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/sim/system.cc') diff --git a/src/sim/system.cc b/src/sim/system.cc index d590adc91..68b02272e 100644 --- a/src/sim/system.cc +++ b/src/sim/system.cc @@ -1,5 +1,6 @@ /* * Copyright (c) 2003-2006 The Regents of The University of Michigan + * Copyright (c) 2011 Regents of the University of California * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,6 +30,7 @@ * Lisa Hsu * Nathan Binkert * Ali Saidi + * Rick Strong */ #include "arch/isa_traits.hh" @@ -70,7 +72,9 @@ System::System(Params *p) pagePtr(0), nextPID(0), #endif - memoryMode(p->mem_mode), _params(p) + memoryMode(p->mem_mode), _params(p), + totalNumInsts(0), + instEventQueue("system instruction-based event queue") { // add self to global system list systemList.push_back(this); @@ -276,6 +280,13 @@ System::freeMemSize() #endif +void +System::resume() +{ + SimObject::resume(); + totalNumInsts = 0; +} + void System::serialize(ostream &os) { -- cgit v1.2.3