summaryrefslogtreecommitdiff
path: root/src/cpu/kvm/perfevent.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas@sandberg.pp.se>2013-06-03 13:39:11 +0200
committerAndreas Sandberg <andreas@sandberg.pp.se>2013-06-03 13:39:11 +0200
commitc2ec232920354ac1c8e07e0d2fbb8b8b314343b5 (patch)
tree8bdcd552af72fbc86f8987b71205f86e7f996cde /src/cpu/kvm/perfevent.hh
parent15f81b6ed9a2bc9821c90a4058b7b528e001a10f (diff)
downloadgem5-c2ec232920354ac1c8e07e0d2fbb8b8b314343b5.tar.xz
kvm: Allow architectures to override the cycle accounting mechanism
Some architectures have special registers in the guest that can be used to do cycle accounting. This is generally preferrable since the prevents the guest from seeing a non-monotonic clock. This changeset adds a virtual method, getHostCycles(), that the architecture-specific code can override to implement this functionallity. The default implementation uses the hwCycles counter.
Diffstat (limited to 'src/cpu/kvm/perfevent.hh')
0 files changed, 0 insertions, 0 deletions