Lines Matching refs:inst

128     MinorDynInstPtr inst = branch.inst;
131 if (inst->isFault() || !inst->triedToPredict)
153 DPRINTF(Branch, "Unpredicted branch seen inst: %s\n", *inst);
154 branchPredictor.squash(inst->id.fetchSeqNum,
155 branch.target, true, inst->id.threadId);
158 branchPredictor.update(inst->id.fetchSeqNum,
159 inst->id.threadId);
163 DPRINTF(Branch, "Branch predicted correctly inst: %s\n", *inst);
164 branchPredictor.update(inst->id.fetchSeqNum,
165 inst->id.threadId);
169 DPRINTF(Branch, "Branch mis-predicted inst: %s\n", *inst);
170 branchPredictor.squash(inst->id.fetchSeqNum,
171 branch.target /* Not used */, false, inst->id.threadId);
174 branchPredictor.update(inst->id.fetchSeqNum,
175 inst->id.threadId);
179 DPRINTF(Branch, "Branch mis-predicted target inst: %s target: %s\n",
180 *inst, branch.target);
181 branchPredictor.squash(inst->id.fetchSeqNum,
182 branch.target, true, inst->id.threadId);
188 Fetch2::predictBranch(MinorDynInstPtr inst, BranchData &branch)
190 Fetch2ThreadInfo &thread = fetchInfo[inst->id.threadId];
191 TheISA::PCState inst_pc = inst->pc;
193 assert(!inst->predictedTaken);
196 if (inst->staticInst->isControl() ||
197 inst->staticInst->isSyscall())
200 inst->triedToPredict = true;
202 DPRINTF(Branch, "Trying to predict for inst: %s\n", *inst);
204 if (branchPredictor.predict(inst->staticInst,
205 inst->id.fetchSeqNum, inst_pc,
206 inst->id.threadId))
208 inst->predictedTaken = true;
209 inst->predictedTarget = inst_pc;
213 DPRINTF(Branch, "Not attempting prediction for inst: %s\n", *inst);
217 if (inst->predictedTaken) {
220 thread.expectedStreamSeqNum = inst->id.streamSeqNum;
223 inst->id.threadId,
224 inst->id.streamSeqNum, thread.predictionSeqNum + 1,
225 inst->predictedTarget, inst);
232 DPRINTF(Branch, "Branch predicted taken inst: %s target: %s"
234 *inst, inst->predictedTarget, thread.predictionSeqNum);
416 DPRINTF(Fetch, "decoder inst %s\n", *dyn_inst);
418 // Collect some basic inst class stats
434 " pc: %s inst: %s\n",
523 * in case this is a line-wrapping inst. */