summaryrefslogtreecommitdiff
path: root/src/cpu/kvm/base.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-05-02 12:03:43 +0200
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-05-02 12:03:43 +0200
commite316e4e5fe836a3cdd522f7181ea1e6421afd416 (patch)
tree60b6007e58256688a34bbad4ec4d69cd805350c3 /src/cpu/kvm/base.hh
parentfa249461caa431b774b558349b32282477ef6153 (diff)
downloadgem5-e316e4e5fe836a3cdd522f7181ea1e6421afd416.tar.xz
kvm: Add a stat counting number of instructions executed
This changeset adds a 'numInsts' stat to the KVM-based CPU. It also cleans up the variable names in kvmRun to make the distinction between host cycles and estimated simulated cycles clearer. As a bonus feature, it also fixes a warning (unreferenced variable) when compiling in fast mode.
Diffstat (limited to 'src/cpu/kvm/base.hh')
-rw-r--r--src/cpu/kvm/base.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cpu/kvm/base.hh b/src/cpu/kvm/base.hh
index 0554f913e..f46455af6 100644
--- a/src/cpu/kvm/base.hh
+++ b/src/cpu/kvm/base.hh
@@ -510,6 +510,7 @@ class BaseKvmCPU : public BaseCPU
public:
/* @{ */
+ Stats::Scalar numInsts;
Stats::Scalar numVMExits;
Stats::Scalar numMMIO;
Stats::Scalar numCoalescedMMIO;