break;
case Trap:
+ DPRINTF(InOrderCPU, "Trapping CPU\n");
cpu->trapCPU(fault, tid, inst);
break;
if (inst->backSked != NULL) {
DPRINTF(InOrderDecode,
- "[tid:%i]: Setting Destination Register(s) for [sn:%i].\n",
- tid, inst->seqNum);
+ "[tid:%i]: %s Setting Destination Register(s) for [sn:%i].\n",
+ tid, inst->instName(), inst->seqNum);
regDepMap[tid]->insert(inst);
//inst->printSked();
exec_req->done();
} else {
- warn("inst [sn:%i] had a %s fault",
- seq_num, fault->name());
+ warn("inst [sn:%i] had a %s fault", seq_num, fault->name());
+
+ exec_req->done();
}
} else {
// Regular ALU instruction
// Handle Any Faults Before Graduating Instruction
if (inst->fault != NoFault) {
cpu->trap(inst->fault, tid, inst);
- grad_req->setCompleted(false);
- return;
}
DPRINTF(InOrderGraduation,
- "[tid:%i] Graduating instruction [sn:%i].\n",
- tid, inst->seqNum);
+ "[tid:%i] Graduating instruction %s [sn:%i].\n",
+ tid, inst->instName(), inst->seqNum);
// Release Non-Speculative "Block" on instructions that could not
// execute because there was a non-speculative inst. active.
// If there is a non-speculative instruction
// in the pipeline then stall instructions here
- if (*nonSpecInstActive[tid] == true &&
- seq_num > *nonSpecSeqNum[tid]) {
+ if (*nonSpecInstActive[tid] == true && seq_num > *nonSpecSeqNum[tid]) {
DPRINTF(InOrderUseDef, "[tid:%i]: [sn:%i] cannot execute because"
"there is non-speculative instruction [sn:%i] has not "
"graduated.\n", tid, seq_num, *nonSpecSeqNum[tid]);
+ ud_req->done(false);
return;
} else if (inst->isNonSpeculative()) {
*nonSpecInstActive[tid] = true;