2 * Copyright (c) 2006 The Regents of The University of Michigan
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 #include "config/use_checker.hh"
33 #include "arch/faults.hh"
34 #include "arch/isa_traits.hh"
35 #include "arch/utility.hh"
36 #include "base/statistics.hh"
37 #include "cpu/thread_context.hh"
38 #include "cpu/exetrace.hh"
39 #include "cpu/ozone/front_end.hh"
40 #include "mem/mem_object.hh"
41 #include "mem/packet.hh"
42 #include "mem/request.hh"
45 #include "cpu/checker/cpu.hh"
48 using namespace TheISA;
52 FrontEnd<Impl>::IcachePort::recvAtomic(PacketPtr pkt)
54 panic("FrontEnd doesn't expect recvAtomic callback!");
60 FrontEnd<Impl>::IcachePort::recvFunctional(PacketPtr pkt)
62 panic("FrontEnd doesn't expect recvFunctional callback!");
67 FrontEnd<Impl>::IcachePort::recvStatusChange(Status status)
69 if (status == RangeChange)
72 panic("FrontEnd doesn't expect recvStatusChange callback!");
77 FrontEnd<Impl>::IcachePort::recvTiming(Packet *pkt)
79 fe->processCacheCompletion(pkt);
85 FrontEnd<Impl>::IcachePort::recvRetry()
91 FrontEnd<Impl>::FrontEnd(Params *params)
95 numInstsReady(params->frontEndLatency, 0),
97 maxInstBufferSize(params->maxInstBufferSize),
98 latency(params->frontEndLatency),
99 width(params->frontEndWidth),
100 freeRegs(params->numPhysicalRegs),
101 numPhysRegs(params->numPhysicalRegs),
102 serializeNext(false),
103 interruptPending(false)
110 // Size of cache block.
113 assert(isPowerOf2(cacheBlkSize));
115 // Create mask to get rid of offset bits.
116 cacheBlkMask = (cacheBlkSize - 1);
118 // Create space to store a cache line.
119 cacheData = new uint8_t[cacheBlkSize];
121 fetchCacheLineNextCycle = true;
123 cacheBlkValid = cacheBlocked = false;
127 fetchFault = NoFault;
130 template <class Impl>
132 FrontEnd<Impl>::name() const
134 return cpu->name() + ".frontend";
137 template <class Impl>
139 FrontEnd<Impl>::setCPU(CPUType *cpu_ptr)
143 icachePort.setName(this->name() + "-iport");
147 cpu->checker->setIcachePort(&icachePort);
152 template <class Impl>
154 FrontEnd<Impl>::setCommBuffer(TimeBuffer<CommStruct> *_comm)
157 // @todo: Hardcoded for now. Allow this to be set by a latency.
158 fromCommit = comm->getWire(-1);
161 template <class Impl>
163 FrontEnd<Impl>::setTC(ThreadContext *tc_ptr)
168 template <class Impl>
170 FrontEnd<Impl>::regStats()
173 .name(name() + ".icacheStallCycles")
174 .desc("Number of cycles fetch is stalled on an Icache miss")
175 .prereq(icacheStallCycles);
178 .name(name() + ".fetchedInsts")
179 .desc("Number of instructions fetch has processed")
180 .prereq(fetchedInsts);
183 .name(name() + ".fetchedBranches")
184 .desc("Number of fetched branches")
185 .prereq(fetchedBranches);
188 .name(name() + ".predictedBranches")
189 .desc("Number of branches that fetch has predicted taken")
190 .prereq(predictedBranches);
193 .name(name() + ".fetchCycles")
194 .desc("Number of cycles fetch has run and was not squashing or"
196 .prereq(fetchCycles);
199 .name(name() + ".fetchIdleCycles")
200 .desc("Number of cycles fetch was idle")
201 .prereq(fetchIdleCycles);
204 .name(name() + ".fetchSquashCycles")
205 .desc("Number of cycles fetch has spent squashing")
206 .prereq(fetchSquashCycles);
209 .name(name() + ".fetchBlockedCycles")
210 .desc("Number of cycles fetch has spent blocked")
211 .prereq(fetchBlockedCycles);
214 .name(name() + ".fetchedCacheLines")
215 .desc("Number of cache lines fetched")
216 .prereq(fetchedCacheLines);
219 .name(name() + ".fetchIcacheSquashes")
220 .desc("Number of outstanding Icache misses that were squashed")
221 .prereq(fetchIcacheSquashes);
224 .init(/* base value */ 0,
225 /* last value */ width,
227 .name(name() + ".rateDist")
228 .desc("Number of instructions fetched each cycle (Total)")
232 .name(name() + ".idleRate")
233 .desc("Percent of cycles fetch was idle")
235 idleRate = fetchIdleCycles * 100 / cpu->numCycles;
238 .name(name() + ".branchRate")
239 .desc("Number of branch fetches per cycle")
240 .flags(Stats::total);
241 branchRate = fetchedBranches / cpu->numCycles;
244 .name(name() + ".rate")
245 .desc("Number of inst fetches per cycle")
246 .flags(Stats::total);
247 fetchRate = fetchedInsts / cpu->numCycles;
250 .name(name() + ".IFQ:count")
251 .desc("cumulative IFQ occupancy")
255 .name(name() + ".IFQ:fullCount")
256 .desc("cumulative IFQ full count")
261 .name(name() + ".IFQ:occupancy")
262 .desc("avg IFQ occupancy (inst's)")
264 IFQOccupancy = IFQCount / cpu->numCycles;
267 .name(name() + ".IFQ:latency")
268 .desc("avg IFQ occupant latency (cycle's)")
273 .name(name() + ".IFQ:fullRate")
274 .desc("fraction of time (cycles) IFQ was full")
275 .flags(Stats::total);
277 IFQFullRate = IFQFcount * Stats::constant(100) / cpu->numCycles;
280 .name(name() + ".DIS:count")
281 .desc("cumulative count of dispatched insts")
285 dispatchedSerializing
286 .name(name() + ".DIS:serializingInsts")
287 .desc("count of serializing insts dispatched")
291 dispatchedTempSerializing
292 .name(name() + ".DIS:tempSerializingInsts")
293 .desc("count of temporary serializing insts dispatched")
297 dispatchSerializeStallCycles
298 .name(name() + ".DIS:serializeStallCycles")
299 .desc("count of cycles dispatch stalled for serializing inst")
304 .name(name() + ".DIS:rate")
305 .desc("dispatched insts per cycle")
308 dispatchRate = dispatchCountStat / cpu->numCycles;
311 .name(name() + ".REG:int:full")
312 .desc("number of cycles where there were no INT registers")
316 .name(name() + ".REG:fp:full")
317 .desc("number of cycles where there were no FP registers")
319 IFQLatency = IFQOccupancy / dispatchRate;
321 branchPred.regStats();
324 template <class Impl>
326 FrontEnd<Impl>::tick()
331 for (int insts_to_queue = numInstsReady[-latency];
332 !instBuffer.empty() && insts_to_queue;
335 DPRINTF(FE, "Transferring instruction [sn:%lli] to the feBuffer\n",
336 instBuffer.front()->seqNum);
337 feBuffer.push_back(instBuffer.front());
338 instBuffer.pop_front();
341 numInstsReady.advance();
343 // @todo: Maybe I want to just have direct communication...
344 if (fromCommit->doneSeqNum) {
345 branchPred.update(fromCommit->doneSeqNum, 0);
348 IFQCount += instBufferSize;
349 IFQFcount += instBufferSize == maxInstBufferSize;
352 if (status == IcacheAccessComplete) {
353 cacheBlkValid = true;
357 // status = SerializeBlocked;
359 status = RenameBlocked;
361 } else if (status == IcacheWaitResponse || status == IcacheWaitRetry) {
362 DPRINTF(FE, "Still in Icache wait.\n");
367 if (status == RenameBlocked || status == SerializeBlocked ||
368 status == TrapPending || status == BEBlocked) {
369 // Will cause a one cycle bubble between changing state and
371 DPRINTF(FE, "In blocked status.\n");
373 fetchBlockedCycles++;
375 if (status == SerializeBlocked) {
376 dispatchSerializeStallCycles++;
380 } else if (status == QuiescePending) {
381 DPRINTF(FE, "Waiting for quiesce to execute or get squashed.\n");
383 } else if (status != IcacheAccessComplete) {
384 if (fetchCacheLineNextCycle) {
385 Fault fault = fetchCacheLine();
386 if (fault != NoFault) {
391 fetchCacheLineNextCycle = false;
393 // If miss, stall until it returns.
394 if (status == IcacheWaitResponse || status == IcacheWaitRetry) {
395 // Tell CPU to not tick me for now.
404 // Otherwise loop and process instructions.
405 // One way to hack infinite width is to set width and maxInstBufferSize
406 // both really high. Inelegant, but probably will work.
407 while (num_inst < width &&
408 instBufferSize < maxInstBufferSize) {
409 // Get instruction from cache line.
410 DynInstPtr inst = getInstFromCacheline();
413 // PC is no longer in the cache line, end fetch.
414 // Might want to check this at the end of the cycle so that
415 // there's no cycle lost to checking for a new cache line.
416 DPRINTF(FE, "Need to get new cache line\n");
417 fetchCacheLineNextCycle = true;
423 if (status == SerializeBlocked) {
427 // Possibly push into a time buffer that estimates the front end
429 instBuffer.push_back(inst);
435 if (inst->isQuiesce()) {
436 // warn("%lli: Quiesce instruction encountered, halting fetch!", curTick);
437 status = QuiescePending;
442 if (inst->predTaken()) {
443 // Start over with tick?
445 } else if (freeRegs <= 0) {
446 DPRINTF(FE, "Ran out of free registers to rename to!\n");
447 status = RenameBlocked;
449 } else if (serializeNext) {
454 fetchNisnDist.sample(num_inst);
457 DPRINTF(FE, "Num insts processed: %i, Inst Buffer size: %i, Free "
458 "Regs %i\n", num_inst, instBufferSize, freeRegs);
461 template <class Impl>
463 FrontEnd<Impl>::fetchCacheLine()
465 // Read a cache line, based on the current PC.
467 // Flag to say whether or not address is physical addr.
468 unsigned flags = cpu->inPalMode(PC) ? PHYSICAL : 0;
471 #endif // FULL_SYSTEM
472 Fault fault = NoFault;
474 if (interruptPending && flags == 0) {
478 // Align the fetch PC so it's at the start of a cache block.
479 Addr fetch_PC = icacheBlockAlignPC(PC);
481 DPRINTF(FE, "Fetching cache line starting at %#x.\n", fetch_PC);
483 // Setup the memReq to do a read of the first isntruction's address.
484 // Set the appropriate read size and flags as well.
485 memReq = new Request(0, fetch_PC, cacheBlkSize, flags,
486 fetch_PC, cpu->readCpuId(), 0);
488 // Translate the instruction request.
489 fault = cpu->translateInstReq(memReq, thread);
491 // Now do the timing access to see whether or not the instruction
492 // exists within the cache.
493 if (fault == NoFault) {
495 if (cpu->system->memctrl->badaddr(memReq->paddr) ||
496 memReq->isUncacheable()) {
497 DPRINTF(FE, "Fetch: Bad address %#x (hopefully on a "
498 "misspeculating path!",
500 return TheISA::genMachineCheckFault();
504 // Build packet here.
505 PacketPtr data_pkt = new Packet(memReq,
506 Packet::ReadReq, Packet::Broadcast);
507 data_pkt->dataStatic(cacheData);
509 if (!icachePort.sendTiming(data_pkt)) {
510 assert(retryPkt == NULL);
511 DPRINTF(Fetch, "Out of MSHRs!\n");
512 status = IcacheWaitRetry;
518 status = IcacheWaitResponse;
521 // Note that this will set the cache block PC a bit earlier than it should
523 cacheBlkPC = fetch_PC;
527 DPRINTF(FE, "Done fetching cache line.\n");
532 template <class Impl>
534 FrontEnd<Impl>::processInst(DynInstPtr &inst)
536 if (processBarriers(inst)) {
540 Addr inst_PC = inst->readPC();
542 if (!inst->isControl()) {
543 inst->setPredTarg(inst->readNextPC());
546 if (branchPred.predict(inst, inst_PC, inst->threadNumber)) {
551 Addr next_PC = inst->readPredTarg();
553 DPRINTF(FE, "[sn:%lli] Predicted and processed inst PC %#x, next PC "
554 "%#x\n", inst->seqNum, inst_PC, next_PC);
556 // inst->setNextPC(next_PC);
558 // Not sure where I should set this
564 template <class Impl>
566 FrontEnd<Impl>::processBarriers(DynInstPtr &inst)
569 inst->setSerializeBefore();
570 serializeNext = false;
571 } else if (!inst->isSerializing() &&
572 !inst->isIprAccess() &&
573 !inst->isStoreConditional()) {
577 if ((inst->isIprAccess() || inst->isSerializeBefore()) &&
578 !inst->isSerializeHandled()) {
579 DPRINTF(FE, "Serialize before instruction encountered.\n");
581 if (!inst->isTempSerializeBefore()) {
582 dispatchedSerializing++;
583 inst->setSerializeHandled();
585 dispatchedTempSerializing++;
588 // Change status over to SerializeBlocked so that other stages know
589 // what this is blocked on.
590 // status = SerializeBlocked;
592 // barrierInst = inst;
594 } else if ((inst->isStoreConditional() || inst->isSerializeAfter())
595 && !inst->isSerializeHandled()) {
596 DPRINTF(FE, "Serialize after instruction encountered.\n");
598 inst->setSerializeHandled();
600 dispatchedSerializing++;
602 serializeNext = true;
608 template <class Impl>
610 FrontEnd<Impl>::handleFault(Fault &fault)
612 DPRINTF(FE, "Fault at fetch, telling commit\n");
614 // We're blocked on the back end until it handles this fault.
615 status = TrapPending;
617 // Get a sequence number.
618 InstSeqNum inst_seq = getAndIncrementInstSeq();
619 // We will use a nop in order to carry the fault.
620 ExtMachInst ext_inst = TheISA::NoopMachInst;
622 // Create a new DynInst from the dummy nop.
623 DynInstPtr instruction = new DynInst(ext_inst, PC,
626 instruction->setPredTarg(instruction->readNextPC());
627 // instruction->setThread(tid);
629 // instruction->setASID(tid);
631 instruction->setThreadState(thread);
633 instruction->traceData = NULL;
635 instruction->fault = fault;
636 instruction->setCanIssue();
637 instBuffer.push_back(instruction);
642 template <class Impl>
644 FrontEnd<Impl>::squash(const InstSeqNum &squash_num, const Addr &next_PC,
645 const bool is_branch, const bool branch_taken)
647 DPRINTF(FE, "Squashing from [sn:%lli], setting PC to %#x\n",
648 squash_num, next_PC);
650 if (fetchFault != NoFault)
651 fetchFault = NoFault;
653 while (!instBuffer.empty() &&
654 instBuffer.back()->seqNum > squash_num) {
655 DynInstPtr inst = instBuffer.back();
657 DPRINTF(FE, "Squashing instruction [sn:%lli] PC %#x\n",
658 inst->seqNum, inst->readPC());
660 inst->clearDependents();
662 instBuffer.pop_back();
665 freeRegs+= inst->numDestRegs();
668 while (!feBuffer.empty() &&
669 feBuffer.back()->seqNum > squash_num) {
670 DynInstPtr inst = feBuffer.back();
672 DPRINTF(FE, "Squashing instruction [sn:%lli] PC %#x\n",
673 inst->seqNum, inst->readPC());
675 inst->clearDependents();
680 freeRegs+= inst->numDestRegs();
683 // Copy over rename table from the back end.
684 renameTable.copyFrom(backEnd->renameTable);
688 // Update BP with proper information.
690 branchPred.squash(squash_num, next_PC, branch_taken, 0);
692 branchPred.squash(squash_num, 0);
695 // Clear the icache miss if it's outstanding.
696 if (status == IcacheWaitResponse) {
697 DPRINTF(FE, "Squashing outstanding Icache access.\n");
701 if (status == SerializeBlocked) {
702 assert(barrierInst->seqNum > squash_num);
706 // Unless this squash originated from the front end, we're probably
707 // in running mode now.
708 // Actually might want to make this latency dependent.
710 fetchCacheLineNextCycle = true;
713 template <class Impl>
714 typename Impl::DynInstPtr
715 FrontEnd<Impl>::getInst()
717 if (feBuffer.empty()) {
721 DynInstPtr inst = feBuffer.front();
723 if (inst->isSerializeBefore() || inst->isIprAccess()) {
724 DPRINTF(FE, "Back end is getting a serialize before inst\n");
725 if (!backEnd->robEmpty()) {
726 DPRINTF(FE, "Rob is not empty yet, not returning inst\n");
729 inst->clearSerializeBefore();
732 feBuffer.pop_front();
741 template <class Impl>
743 FrontEnd<Impl>::processCacheCompletion(PacketPtr pkt)
745 DPRINTF(FE, "Processing cache completion\n");
747 // Do something here.
748 if (status != IcacheWaitResponse ||
749 pkt->req != memReq ||
751 DPRINTF(FE, "Previous fetch was squashed.\n");
752 fetchIcacheSquashes++;
758 status = IcacheAccessComplete;
760 /* if (checkStall(tid)) {
761 fetchStatus[tid] = Blocked;
763 fetchStatus[tid] = IcacheMissComplete;
766 // memcpy(cacheData, memReq->data, memReq->size);
768 // Reset the completion event to NULL.
769 // memReq->completionEvent = NULL;
775 template <class Impl>
777 FrontEnd<Impl>::addFreeRegs(int num_freed)
779 if (status == RenameBlocked && freeRegs + num_freed > 0) {
783 DPRINTF(FE, "Adding %i freed registers\n", num_freed);
785 freeRegs+= num_freed;
787 // assert(freeRegs <= numPhysRegs);
788 if (freeRegs > numPhysRegs)
789 freeRegs = numPhysRegs;
792 template <class Impl>
794 FrontEnd<Impl>::recvRetry()
796 assert(cacheBlocked);
797 if (retryPkt != NULL) {
798 assert(status == IcacheWaitRetry);
800 if (icachePort.sendTiming(retryPkt)) {
801 status = IcacheWaitResponse;
803 cacheBlocked = false;
806 // Access has been squashed since it was sent out. Just clear
807 // the cache being blocked.
808 cacheBlocked = false;
813 template <class Impl>
815 FrontEnd<Impl>::updateStatus()
817 bool serialize_block = !backEnd->robEmpty() || instBufferSize;
818 bool be_block = cpu->decoupledFrontEnd ? false : backEnd->isBlocked();
819 bool ret_val = false;
821 if (status == SerializeBlocked && !serialize_block) {
822 status = SerializeComplete;
826 if (status == BEBlocked && !be_block) {
827 // if (barrierInst) {
828 // status = SerializeBlocked;
837 template <class Impl>
839 FrontEnd<Impl>::checkBE()
841 bool be_block = cpu->decoupledFrontEnd ? false : backEnd->isBlocked();
843 if (status == Running || status == Idle) {
849 template <class Impl>
850 typename Impl::DynInstPtr
851 FrontEnd<Impl>::getInstFromCacheline()
854 if (status == SerializeComplete) {
855 DynInstPtr inst = barrierInst;
858 inst->clearSerializeBefore();
864 // @todo: Fix this magic number used here to handle word offset (and
865 // getting rid of PAL bit)
866 unsigned offset = (PC & cacheBlkMask) & ~3;
868 // PC of inst is not in this cache block
869 if (PC >= (cacheBlkPC + cacheBlkSize) || PC < cacheBlkPC || !cacheBlkValid) {
873 //////////////////////////
874 // Fetch one instruction
875 //////////////////////////
877 // Get a sequence number.
878 inst_seq = getAndIncrementInstSeq();
880 // Make sure this is a valid index.
881 assert(offset <= cacheBlkSize - sizeof(MachInst));
883 // Get the instruction from the array of the cache line.
884 inst = htog(*reinterpret_cast<MachInst *>(&cacheData[offset]));
886 ExtMachInst decode_inst = TheISA::makeExtMI(inst, PC);
888 // Create a new DynInst from the instruction fetched.
889 DynInstPtr instruction = new DynInst(decode_inst, PC, PC+sizeof(MachInst),
892 instruction->setThreadState(thread);
894 DPRINTF(FE, "Instruction [sn:%lli] created, with PC %#x\n%s\n",
895 inst_seq, instruction->readPC(),
896 instruction->staticInst->disassemble(PC));
898 instruction->traceData =
899 Trace::getInstRecord(curTick, tc,
900 instruction->staticInst,
901 instruction->readPC());
903 // Increment stat of fetched instructions.
909 template <class Impl>
911 FrontEnd<Impl>::renameInst(DynInstPtr &inst)
913 DynInstPtr src_inst = NULL;
914 int num_src_regs = inst->numSrcRegs();
915 if (num_src_regs == 0) {
918 for (int i = 0; i < num_src_regs; ++i) {
919 src_inst = renameTable[inst->srcRegIdx(i)];
921 inst->setSrcInst(src_inst, i);
923 DPRINTF(FE, "[sn:%lli]: Src reg %i is inst [sn:%lli]\n",
924 inst->seqNum, (int)inst->srcRegIdx(i), src_inst->seqNum);
926 if (src_inst->isResultReady()) {
927 DPRINTF(FE, "Reg ready.\n");
928 inst->markSrcRegReady(i);
930 DPRINTF(FE, "Adding to dependent list.\n");
931 src_inst->addDependent(inst);
936 for (int i = 0; i < inst->numDestRegs(); ++i) {
937 RegIndex idx = inst->destRegIdx(i);
939 DPRINTF(FE, "Dest reg %i is now inst [sn:%lli], was previously "
941 (int)inst->destRegIdx(i), inst->seqNum,
942 renameTable[idx]->seqNum);
944 inst->setPrevDestInst(renameTable[idx], i);
946 renameTable[idx] = inst;
951 template <class Impl>
953 FrontEnd<Impl>::wakeFromQuiesce()
955 DPRINTF(FE, "Waking up from quiesce\n");
956 // Hopefully this is safe
960 template <class Impl>
962 FrontEnd<Impl>::switchOut()
965 cpu->signalSwitched();
968 template <class Impl>
970 FrontEnd<Impl>::doSwitchOut()
980 template <class Impl>
982 FrontEnd<Impl>::takeOverFrom(ThreadContext *old_tc)
984 assert(freeRegs == numPhysRegs);
985 fetchCacheLineNextCycle = true;
987 cacheBlkValid = false;
990 // pTable = params->pTable;
992 fetchFault = NoFault;
993 serializeNext = false;
997 interruptPending = false;
1000 template <class Impl>
1002 FrontEnd<Impl>::dumpInsts()
1004 cprintf("instBuffer size: %i\n", instBuffer.size());
1006 InstBuffIt buff_it = instBuffer.begin();
1008 for (int num = 0; buff_it != instBuffer.end(); num++) {
1009 cprintf("Instruction:%i\nPC:%#x\n[tid:%i]\n[sn:%lli]\nIssued:%i\n"
1011 num, (*buff_it)->readPC(), (*buff_it)->threadNumber,
1012 (*buff_it)->seqNum, (*buff_it)->isIssued(),
1013 (*buff_it)->isSquashed());