mem: Remove threadId from memory request class
In general, the ThreadID parameter is unnecessary in the memory system as the ContextID is what is used for the purposes of locks/wakeups. Since we allocate sequential ContextIDs for each thread on MT-enabled CPUs, ThreadID is unnecessary as the CPUs can identify the requesting thread through sideband info (SenderState / LSQ entries) or ContextID offset from the base ContextID for a cpu. This is a re-spin of 20264eb after the revert (bd1c6789) and includes some fixes of that commit.
This commit is contained in:
@@ -177,7 +177,7 @@ ExtMaster::handleEvent(SST::Event* event)
|
||||
}
|
||||
|
||||
auto req = new Request(ev->getAddr(), ev->getSize(), flags, 0);
|
||||
req->setThreadContext(ev->getGroupId(), 0);
|
||||
req->setContext(ev->getGroupId());
|
||||
|
||||
auto pkt = new Packet(req, cmdO);
|
||||
pkt->allocate();
|
||||
|
||||
Reference in New Issue
Block a user