kvm: Avoid synchronizing the TC on every KVM exit
authorAndreas Sandberg <Andreas.Sandberg@ARM.com>
Mon, 22 Apr 2013 17:20:32 +0000 (13:20 -0400)
committerAndreas Sandberg <Andreas.Sandberg@ARM.com>
Mon, 22 Apr 2013 17:20:32 +0000 (13:20 -0400)
commit2607efded8ea856d632f017e93b40f1780046db1
tree1d9c6072a2cc3189db43a39017fddec0af45691f
parentf485ad190830ab61d58ecdb8eb48621ffeb3008f
kvm: Avoid synchronizing the TC on every KVM exit

Reduce the number of KVM->TC synchronizations by overloading the
getContext() method and only request an update when the TC is
requested as opposed to every time KVM returns to gem5.
src/cpu/base.hh
src/cpu/kvm/base.cc
src/cpu/kvm/base.hh