Skip to content

Commit

Permalink
cpu-o3: if can get data from bypassnetwork, should not participate in…
Browse files Browse the repository at this point in the history
… arbitration (#246)
  • Loading branch information
tastynoob authored Dec 27, 2024
1 parent 9463f90 commit 92a275b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/cpu/o3/issue_queue.cc
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ IssueQue::wakeUpDependents(const DynInstPtr& inst, bool speculative)
if (dst->isFixedMapping() || dst->getNumPinnedWritesToComplete() != 1) [[unlikely]] {
continue;
}

scheduler->regCache.insert(dst->flatIndex(), {});
DPRINTF(Schedule, "was %s woken by p%lu [sn:%llu]\n", speculative ? "spec" : "wb", dst->flatIndex(),
inst->seqNum);
for (auto& it : subDepGraph[dst->flatIndex()]) {
Expand Down Expand Up @@ -402,6 +402,7 @@ IssueQue::selectInst()
for (int i = 0; i < inst->numSrcRegs(); i++) {
auto src = inst->srcRegIdx(i);
PhysRegIdPtr psrc = inst->renamedSrcIdx(i);
if (psrc->isFixedMapping()) continue;
std::pair<int, int> rfTypePortId;
// read port is point to point with srcid
if (src.isIntReg() && intRfTypePortId[pi].size() > i) {
Expand Down Expand Up @@ -1029,7 +1030,6 @@ Scheduler::writebackWakeup(const DynInstPtr& inst)
continue;
}
scoreboard[dst->flatIndex()] = true;
regCache.insert(dst->flatIndex(), {});
}
for (auto it : issueQues) {
it->wakeUpDependents(inst, false);
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/o3/issue_queue.hh
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ class Scheduler : public SimObject

// regcache only for integer
boost::compute::detail::lru_cache<int, NullStruct> regCache =
boost::compute::detail::lru_cache<int, NullStruct>(24);
boost::compute::detail::lru_cache<int, NullStruct>(28);

// used for searching dependency chain
std::stack<DynInstPtr> dfs;
Expand Down

0 comments on commit 92a275b

Please sign in to comment.