From: Gabe Black Date: Mon, 18 Dec 2006 23:20:13 +0000 (-0500) Subject: Fix a place where the wrong width parameter was used, and set the nextNPC correctly... X-Git-Tag: m5_2.0_beta3~267 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5b41ab694c9f1f2ae7183da48704eba34fc049ab;p=gem5.git Fix a place where the wrong width parameter was used, and set the nextNPC correctly on memory squashes. --HG-- extra : convert_revision : 7914a48ea953607c48f93984e3b043098f0d7c62 --- diff --git a/src/cpu/o3/iew_impl.hh b/src/cpu/o3/iew_impl.hh index 70200d648..787d8a26c 100644 --- a/src/cpu/o3/iew_impl.hh +++ b/src/cpu/o3/iew_impl.hh @@ -546,7 +546,7 @@ DefaultIEW::squashDueToMemBlocked(DynInstPtr &inst, unsigned tid) toCommit->squashedSeqNum[tid] = inst->seqNum; toCommit->nextPC[tid] = inst->readPC(); #if ISA_HAS_DELAY_SLOT - toCommit->nextNPC[tid] = inst->readNextNPC(); + toCommit->nextNPC[tid] = inst->readNextPC(); #endif toCommit->branchMispredict[tid] = false; @@ -1436,7 +1436,7 @@ DefaultIEW::writebackInsts() // mark scoreboard that this instruction is finally complete. // Either have IEW have direct access to scoreboard, or have this // as part of backwards communication. - for (int inst_num = 0; inst_num < issueWidth && + for (int inst_num = 0; inst_num < wbWidth && toCommit->insts[inst_num]; inst_num++) { DynInstPtr inst = toCommit->insts[inst_num]; int tid = inst->threadNumber;