From 4fcebbd4d42a85548ff1d67916a5a58703dd0a06 Mon Sep 17 00:00:00 2001 From: Yan Xu <934348725@qq.com> Date: Wed, 18 Dec 2024 10:26:56 +0800 Subject: [PATCH] cpu-o3: using writebuffer regCache (#236) Change-Id: I4e8d600c191ab74e54f19776f48c098d6df9450a --- src/cpu/o3/issue_queue.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cpu/o3/issue_queue.cc b/src/cpu/o3/issue_queue.cc index fe972fd29f..a53182b095 100644 --- a/src/cpu/o3/issue_queue.cc +++ b/src/cpu/o3/issue_queue.cc @@ -928,8 +928,6 @@ Scheduler::useRegfilePort(const DynInstPtr& inst, const PhysRegIdPtr& regid, int if (regCache.contains(regid->flatIndex())) { regCache.get(regid->flatIndex()); return; - } else { - regCache.insert(regid->flatIndex(), {}); } } assert(typePortId < rfPortOccupancy.size()); @@ -1016,6 +1014,7 @@ Scheduler::writebackWakeup(const DynInstPtr& inst) continue; } scoreboard[dst->flatIndex()] = true; + regCache.insert(dst->flatIndex(), {}); } for (auto it : issueQues) { it->wakeUpDependents(inst, false);