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/mem/abstract_mem.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mem') diff --git a/src/mem/abstract_mem.cc b/src/mem/abstract_mem.cc index 4690a5d80..9b9c6e2c3 100644 --- a/src/mem/abstract_mem.cc +++ b/src/mem/abstract_mem.cc @@ -274,7 +274,8 @@ AbstractMemory::checkLockedAddrList(PacketPtr pkt) // architecture specifies that an event is // automatically generated when clearing the exclusive // monitor to wake up the processor in WFE. - system()->getThreadContext(i->contextId)->getCpuPtr()->wakeup(); + ThreadContext* ctx = system()->getThreadContext(i->contextId); + ctx->getCpuPtr()->wakeup(ctx->threadId()); i = lockedAddrList.erase(i); } else { i++; -- cgit v1.2.3