From e316e4e5fe836a3cdd522f7181ea1e6421afd416 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Thu, 2 May 2013 12:03:43 +0200 Subject: 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. --- src/cpu/kvm/base.hh | 1 + 1 file changed, 1 insertion(+) (limited to 'src/cpu/kvm/base.hh') 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; -- cgit v1.2.3