From 9e07a7504c94973e7837d1d3e96dbdb8d95cfad3 Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Wed, 30 Sep 2015 11:14:19 -0500 Subject: cpu,isa,mem: Add per-thread wakeup logic Changes wakeup functionality so that only specific threads on SMT capable cpus are woken. --- src/cpu/kvm/base.cc | 2 +- src/cpu/kvm/base.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cpu/kvm') diff --git a/src/cpu/kvm/base.cc b/src/cpu/kvm/base.cc index 47cff5917..32f94eca8 100644 --- a/src/cpu/kvm/base.cc +++ b/src/cpu/kvm/base.cc @@ -408,7 +408,7 @@ BaseKvmCPU::verifyMemoryMode() const } void -BaseKvmCPU::wakeup() +BaseKvmCPU::wakeup(ThreadID tid) { DPRINTF(Kvm, "wakeup()\n"); // This method might have been called from another diff --git a/src/cpu/kvm/base.hh b/src/cpu/kvm/base.hh index df6a67808..89c52cf6b 100644 --- a/src/cpu/kvm/base.hh +++ b/src/cpu/kvm/base.hh @@ -100,7 +100,7 @@ class BaseKvmCPU : public BaseCPU MasterPort &getDataPort() { return dataPort; } MasterPort &getInstPort() { return instPort; } - void wakeup(); + void wakeup(ThreadID tid = 0) M5_ATTR_OVERRIDE; void activateContext(ThreadID thread_num); void suspendContext(ThreadID thread_num); void deallocateContext(ThreadID thread_num); -- cgit v1.2.3