From: Timothy M. Jones Date: Mon, 22 Apr 2013 17:20:31 +0000 (-0400) Subject: cpu: Let python scripts obtain the number of instructions executed X-Git-Tag: stable_2013_10_14~154 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=005616518c5eaa78933eb4d4760bf5243f948139;p=gem5.git cpu: Let python scripts obtain the number of instructions executed --- diff --git a/src/cpu/BaseCPU.py b/src/cpu/BaseCPU.py index f47838e83..b98ddee6e 100644 --- a/src/cpu/BaseCPU.py +++ b/src/cpu/BaseCPU.py @@ -98,6 +98,7 @@ class BaseCPU(MemObject): void takeOverFrom(BaseCPU *cpu); bool switchedOut(); void flushTLBs(); + Counter totalInsts(); ''') @classmethod