Skip to content

Commit

Permalink
RC Update Optimization: Inst should be added to the NCQ in all cases;…
Browse files Browse the repository at this point in the history
… Commit shouldn't check if the NCQ is full or not

Change-Id: I139044648c4371af0db35a99a338087db01e0339
  • Loading branch information
hakase56557 committed Oct 4, 2023
1 parent d7ce7c9 commit fd39fd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/arch/riscvcapstone/o3/commit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1239,10 +1239,10 @@ Commit::commitHead(const DynInstPtr &head_inst, unsigned inst_num)
mnemonic != "shrink" &&
head_inst->numDestRegs() > 0) {

if(iewStage->ncQueue.isFull(tid)) {
DPRINTF(Commit, "[tid:%i] NCQ has become full.\n", tid);
return false;
}
// if(iewStage->ncQueue.isFull(tid)) {
// DPRINTF(Commit, "[tid:%i] NCQ has become full.\n", tid);
// return false;
// }

CPU* cpu = dynamic_cast<o3::CPU *>(head_inst->getCpuPtr());
PhysRegIdPtr prev_reg = head_inst->prevDestIdx(0); //FIXME: this may be 0, may not be 0
Expand Down
2 changes: 1 addition & 1 deletion src/arch/riscvcapstone/o3/iew.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ IEW::dispatchInsts(ThreadID tid)
}

// Check NSQ
if(inst->hasNodeOp() && ncQueue.isFull(tid)) {
if(ncQueue.isFull(tid)) {
DPRINTF(IEW, "[tid:%i] Issue: NCQ has become full.\n", tid);
DPRINTF(NCQ, "[tid:%i] NCQ has become full.\n", tid);
block(tid);
Expand Down

0 comments on commit fd39fd5

Please sign in to comment.