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 "arch/isa_traits.hh"
32 #include "arch/utility.hh"
33 #include "base/statistics.hh"
34 #include "config/the_isa.hh"
35 #include "config/use_checker.hh"
36 #include "cpu/ozone/front_end.hh"
37 #include "cpu/exetrace.hh"
38 #include "cpu/thread_context.hh"
39 #include "mem/mem_object.hh"
40 #include "mem/packet.hh"
41 #include "mem/request.hh"
42 #include "sim/faults.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 warn("FrontEnd doesn't update state from functional calls");
67 FrontEnd<Impl>::IcachePort::recvStatusChange(Status status)
69 if (status == RangeChange)
72 panic("FrontEnd doesn't expect recvStatusChange callback!");
77 FrontEnd<Impl>::IcachePort::recvTiming(PacketPtr pkt)
79 fe->processCacheCompletion(pkt);
85 FrontEnd<Impl>::IcachePort::recvRetry()
91 FrontEnd<Impl>::FrontEnd(Params *params)
94 numInstsReady(params->frontEndLatency, 0),
96 maxInstBufferSize(params->maxInstBufferSize),
97 latency(params->frontEndLatency),
98 width(params->frontEndWidth),
99 freeRegs(params->numPhysicalRegs),
100 numPhysRegs(params->numPhysicalRegs),
101 serializeNext(false),
102 interruptPending(false)
109 // Size of cache block.
112 assert(isPowerOf2(cacheBlkSize));
114 // Create mask to get rid of offset bits.
115 cacheBlkMask = (cacheBlkSize - 1);
117 // Create space to store a cache line.
118 cacheData = new uint8_t[cacheBlkSize];
120 fetchCacheLineNextCycle = true;
122 cacheBlkValid = cacheBlocked = false;
126 fetchFault = NoFault;
129 template <class Impl>
131 FrontEnd<Impl>::name() const
133 return cpu->name() + ".frontend";
136 template <class Impl>
138 FrontEnd<Impl>::setCPU(CPUType *cpu_ptr)
142 icachePort.setName(this->name() + "-iport");
146 cpu->checker->setIcachePort(&icachePort);
151 template <class Impl>
153 FrontEnd<Impl>::setCommBuffer(TimeBuffer<CommStruct> *_comm)
156 // @todo: Hardcoded for now. Allow this to be set by a latency.
157 fromCommit = comm->getWire(-1);
160 template <class Impl>
162 FrontEnd<Impl>::setTC(ThreadContext *tc_ptr)
167 template <class Impl>
169 FrontEnd<Impl>::regStats()
172 .name(name() + ".icacheStallCycles")
173 .desc("Number of cycles fetch is stalled on an Icache miss")
174 .prereq(icacheStallCycles);
177 .name(name() + ".fetchedInsts")
178 .desc("Number of instructions fetch has processed")
179 .prereq(fetchedInsts);
182 .name(name() + ".fetchedBranches")
183 .desc("Number of fetched branches")
184 .prereq(fetchedBranches);
187 .name(name() + ".predictedBranches")
188 .desc("Number of branches that fetch has predicted taken")
189 .prereq(predictedBranches);
192 .name(name() + ".fetchCycles")
193 .desc("Number of cycles fetch has run and was not squashing or"
195 .prereq(fetchCycles);
198 .name(name() + ".fetchIdleCycles")
199 .desc("Number of cycles fetch was idle")
200 .prereq(fetchIdleCycles);
203 .name(name() + ".fetchSquashCycles")
204 .desc("Number of cycles fetch has spent squashing")
205 .prereq(fetchSquashCycles);
208 .name(name() + ".fetchBlockedCycles")
209 .desc("Number of cycles fetch has spent blocked")
210 .prereq(fetchBlockedCycles);
213 .name(name() + ".fetchedCacheLines")
214 .desc("Number of cache lines fetched")
215 .prereq(fetchedCacheLines);
218 .name(name() + ".fetchIcacheSquashes")
219 .desc("Number of outstanding Icache misses that were squashed")
220 .prereq(fetchIcacheSquashes);
223 .init(/* base value */ 0,
224 /* last value */ width,
226 .name(name() + ".rateDist")
227 .desc("Number of instructions fetched each cycle (Total)")
231 .name(name() + ".idleRate")
232 .desc("Percent of cycles fetch was idle")
234 idleRate = fetchIdleCycles * 100 / cpu->numCycles;
237 .name(name() + ".branchRate")
238 .desc("Number of branch fetches per cycle")
239 .flags(Stats::total);
240 branchRate = fetchedBranches / cpu->numCycles;
243 .name(name() + ".rate")
244 .desc("Number of inst fetches per cycle")
245 .flags(Stats::total);
246 fetchRate = fetchedInsts / cpu->numCycles;
249 .name(name() + ".IFQ:count")
250 .desc("cumulative IFQ occupancy")
254 .name(name() + ".IFQ:fullCount")
255 .desc("cumulative IFQ full count")
260 .name(name() + ".IFQ:occupancy")
261 .desc("avg IFQ occupancy (inst's)")
263 IFQOccupancy = IFQCount / cpu->numCycles;
266 .name(name() + ".IFQ:latency")
267 .desc("avg IFQ occupant latency (cycle's)")
272 .name(name() + ".IFQ:fullRate")
273 .desc("fraction of time (cycles) IFQ was full")
274 .flags(Stats::total);
276 IFQFullRate = IFQFcount * Stats::constant(100) / cpu->numCycles;
279 .name(name() + ".DIS:count")
280 .desc("cumulative count of dispatched insts")
284 dispatchedSerializing
285 .name(name() + ".DIS:serializingInsts")
286 .desc("count of serializing insts dispatched")
290 dispatchedTempSerializing
291 .name(name() + ".DIS:tempSerializingInsts")
292 .desc("count of temporary serializing insts dispatched")
296 dispatchSerializeStallCycles
297 .name(name() + ".DIS:serializeStallCycles")
298 .desc("count of cycles dispatch stalled for serializing inst")
303 .name(name() + ".DIS:rate")
304 .desc("dispatched insts per cycle")
307 dispatchRate = dispatchCountStat / cpu->numCycles;
310 .name(name() + ".REG:int:full")
311 .desc("number of cycles where there were no INT registers")
315 .name(name() + ".REG:fp:full")
316 .desc("number of cycles where there were no FP registers")
318 IFQLatency = IFQOccupancy / dispatchRate;
320 branchPred.regStats();
323 template <class Impl>
325 FrontEnd<Impl>::tick()
330 for (int insts_to_queue = numInstsReady[-latency];
331 !instBuffer.empty() && insts_to_queue;
334 DPRINTF(FE, "Transferring instruction [sn:%lli] to the feBuffer\n",
335 instBuffer.front()->seqNum);
336 feBuffer.push_back(instBuffer.front());
337 instBuffer.pop_front();
340 numInstsReady.advance();
342 // @todo: Maybe I want to just have direct communication...
343 if (fromCommit->doneSeqNum) {
344 branchPred.update(fromCommit->doneSeqNum, 0);
347 IFQCount += instBufferSize;
348 IFQFcount += instBufferSize == maxInstBufferSize;
351 if (status == IcacheAccessComplete) {
352 cacheBlkValid = true;
356 // status = SerializeBlocked;
358 status = RenameBlocked;
360 } else if (status == IcacheWaitResponse || status == IcacheWaitRetry) {
361 DPRINTF(FE, "Still in Icache wait.\n");
366 if (status == RenameBlocked || status == SerializeBlocked ||
367 status == TrapPending || status == BEBlocked) {
368 // Will cause a one cycle bubble between changing state and
370 DPRINTF(FE, "In blocked status.\n");
372 fetchBlockedCycles++;
374 if (status == SerializeBlocked) {
375 dispatchSerializeStallCycles++;
379 } else if (status == QuiescePending) {
380 DPRINTF(FE, "Waiting for quiesce to execute or get squashed.\n");
382 } else if (status != IcacheAccessComplete) {
383 if (fetchCacheLineNextCycle) {
384 Fault fault = fetchCacheLine();
385 if (fault != NoFault) {
390 fetchCacheLineNextCycle = false;
392 // If miss, stall until it returns.
393 if (status == IcacheWaitResponse || status == IcacheWaitRetry) {
394 // Tell CPU to not tick me for now.
403 // Otherwise loop and process instructions.
404 // One way to hack infinite width is to set width and maxInstBufferSize
405 // both really high. Inelegant, but probably will work.
406 while (num_inst < width &&
407 instBufferSize < maxInstBufferSize) {
408 // Get instruction from cache line.
409 DynInstPtr inst = getInstFromCacheline();
412 // PC is no longer in the cache line, end fetch.
413 // Might want to check this at the end of the cycle so that
414 // there's no cycle lost to checking for a new cache line.
415 DPRINTF(FE, "Need to get new cache line\n");
416 fetchCacheLineNextCycle = true;
422 if (status == SerializeBlocked) {
426 // Possibly push into a time buffer that estimates the front end
428 instBuffer.push_back(inst);
434 if (inst->isQuiesce()) {
435 // warn("%lli: Quiesce instruction encountered, halting fetch!", curTick());
436 status = QuiescePending;
441 if (inst->predTaken()) {
442 // Start over with tick?
444 } else if (freeRegs <= 0) {
445 DPRINTF(FE, "Ran out of free registers to rename to!\n");
446 status = RenameBlocked;
448 } else if (serializeNext) {
453 fetchNisnDist.sample(num_inst);
456 DPRINTF(FE, "Num insts processed: %i, Inst Buffer size: %i, Free "
457 "Regs %i\n", num_inst, instBufferSize, freeRegs);
460 template <class Impl>
462 FrontEnd<Impl>::fetchCacheLine()
464 // Read a cache line, based on the current PC.
465 Fault fault = NoFault;
468 if (interruptPending && (PC & 0x3)) {
472 // Align the fetch PC so it's at the start of a cache block.
473 Addr fetch_PC = icacheBlockAlignPC(PC);
475 DPRINTF(FE, "Fetching cache line starting at %#x.\n", fetch_PC);
477 // Setup the memReq to do a read of the first isntruction's address.
478 // Set the appropriate read size and flags as well.
479 memReq = new Request(0, fetch_PC, cacheBlkSize, 0,
480 PC, cpu->thread->contextId());
482 // Translate the instruction request.
483 fault = cpu->itb->translateAtomic(memReq, thread, false, true);
485 // Now do the timing access to see whether or not the instruction
486 // exists within the cache.
487 if (fault == NoFault) {
489 if (cpu->system->memctrl->badaddr(memReq->paddr) ||
490 memReq->isUncacheable()) {
491 DPRINTF(FE, "Fetch: Bad address %#x (hopefully on a "
492 "misspeculating path!",
494 return TheISA::genMachineCheckFault();
498 // Build packet here.
499 PacketPtr data_pkt = new Packet(memReq,
500 Packet::ReadReq, Packet::Broadcast);
501 data_pkt->dataStatic(cacheData);
503 if (!icachePort.sendTiming(data_pkt)) {
504 assert(retryPkt == NULL);
505 DPRINTF(Fetch, "Out of MSHRs!\n");
506 status = IcacheWaitRetry;
512 status = IcacheWaitResponse;
515 // Note that this will set the cache block PC a bit earlier than it should
517 cacheBlkPC = fetch_PC;
521 DPRINTF(FE, "Done fetching cache line.\n");
526 template <class Impl>
528 FrontEnd<Impl>::processInst(DynInstPtr &inst)
530 if (processBarriers(inst)) {
534 Addr inst_PC = inst->readPC();
536 if (!inst->isControl()) {
537 inst->setPredTarg(inst->readNextPC());
540 if (branchPred.predict(inst, inst_PC, inst->threadNumber)) {
545 Addr next_PC = inst->readPredTarg();
547 DPRINTF(FE, "[sn:%lli] Predicted and processed inst PC %#x, next PC "
548 "%#x\n", inst->seqNum, inst_PC, next_PC);
550 // inst->setNextPC(next_PC);
552 // Not sure where I should set this
558 template <class Impl>
560 FrontEnd<Impl>::processBarriers(DynInstPtr &inst)
563 inst->setSerializeBefore();
564 serializeNext = false;
565 } else if (!inst->isSerializing() &&
566 !inst->isIprAccess() &&
567 !inst->isStoreConditional()) {
571 if ((inst->isIprAccess() || inst->isSerializeBefore()) &&
572 !inst->isSerializeHandled()) {
573 DPRINTF(FE, "Serialize before instruction encountered.\n");
575 if (!inst->isTempSerializeBefore()) {
576 dispatchedSerializing++;
577 inst->setSerializeHandled();
579 dispatchedTempSerializing++;
582 // Change status over to SerializeBlocked so that other stages know
583 // what this is blocked on.
584 // status = SerializeBlocked;
586 // barrierInst = inst;
588 } else if ((inst->isStoreConditional() || inst->isSerializeAfter())
589 && !inst->isSerializeHandled()) {
590 DPRINTF(FE, "Serialize after instruction encountered.\n");
592 inst->setSerializeHandled();
594 dispatchedSerializing++;
596 serializeNext = true;
602 template <class Impl>
604 FrontEnd<Impl>::handleFault(Fault &fault)
606 DPRINTF(FE, "Fault at fetch, telling commit\n");
608 // We're blocked on the back end until it handles this fault.
609 status = TrapPending;
611 // Get a sequence number.
612 InstSeqNum inst_seq = getAndIncrementInstSeq();
613 // We will use a nop in order to carry the fault.
614 ExtMachInst ext_inst = TheISA::NoopMachInst;
616 // Create a new DynInst from the dummy nop.
617 DynInstPtr instruction = new DynInst(ext_inst, PC,
620 instruction->setPredTarg(instruction->readNextPC());
621 // instruction->setThread(tid);
623 // instruction->setASID(tid);
625 instruction->setThreadState(thread);
627 instruction->traceData = NULL;
629 instruction->fault = fault;
630 instruction->setCanIssue();
631 instBuffer.push_back(instruction);
636 template <class Impl>
638 FrontEnd<Impl>::squash(const InstSeqNum &squash_num, const Addr &next_PC,
639 const bool is_branch, const bool branch_taken)
641 DPRINTF(FE, "Squashing from [sn:%lli], setting PC to %#x\n",
642 squash_num, next_PC);
644 if (fetchFault != NoFault)
645 fetchFault = NoFault;
647 while (!instBuffer.empty() &&
648 instBuffer.back()->seqNum > squash_num) {
649 DynInstPtr inst = instBuffer.back();
651 DPRINTF(FE, "Squashing instruction [sn:%lli] PC %#x\n",
652 inst->seqNum, inst->readPC());
654 inst->clearDependents();
656 instBuffer.pop_back();
659 freeRegs+= inst->numDestRegs();
662 while (!feBuffer.empty() &&
663 feBuffer.back()->seqNum > squash_num) {
664 DynInstPtr inst = feBuffer.back();
666 DPRINTF(FE, "Squashing instruction [sn:%lli] PC %#x\n",
667 inst->seqNum, inst->readPC());
669 inst->clearDependents();
674 freeRegs+= inst->numDestRegs();
677 // Copy over rename table from the back end.
678 renameTable.copyFrom(backEnd->renameTable);
682 // Update BP with proper information.
684 branchPred.squash(squash_num, next_PC, branch_taken, 0);
686 branchPred.squash(squash_num, 0);
689 // Clear the icache miss if it's outstanding.
690 if (status == IcacheWaitResponse) {
691 DPRINTF(FE, "Squashing outstanding Icache access.\n");
695 if (status == SerializeBlocked) {
696 assert(barrierInst->seqNum > squash_num);
700 // Unless this squash originated from the front end, we're probably
701 // in running mode now.
702 // Actually might want to make this latency dependent.
704 fetchCacheLineNextCycle = true;
707 template <class Impl>
708 typename Impl::DynInstPtr
709 FrontEnd<Impl>::getInst()
711 if (feBuffer.empty()) {
715 DynInstPtr inst = feBuffer.front();
717 if (inst->isSerializeBefore() || inst->isIprAccess()) {
718 DPRINTF(FE, "Back end is getting a serialize before inst\n");
719 if (!backEnd->robEmpty()) {
720 DPRINTF(FE, "Rob is not empty yet, not returning inst\n");
723 inst->clearSerializeBefore();
726 feBuffer.pop_front();
735 template <class Impl>
737 FrontEnd<Impl>::processCacheCompletion(PacketPtr pkt)
739 DPRINTF(FE, "Processing cache completion\n");
741 // Do something here.
742 if (status != IcacheWaitResponse ||
743 pkt->req != memReq ||
745 DPRINTF(FE, "Previous fetch was squashed.\n");
746 fetchIcacheSquashes++;
752 status = IcacheAccessComplete;
754 /* if (checkStall(tid)) {
755 fetchStatus[tid] = Blocked;
757 fetchStatus[tid] = IcacheMissComplete;
760 // memcpy(cacheData, memReq->data, memReq->size);
762 // Reset the completion event to NULL.
763 // memReq->completionEvent = NULL;
769 template <class Impl>
771 FrontEnd<Impl>::addFreeRegs(int num_freed)
773 if (status == RenameBlocked && freeRegs + num_freed > 0) {
777 DPRINTF(FE, "Adding %i freed registers\n", num_freed);
779 freeRegs+= num_freed;
781 // assert(freeRegs <= numPhysRegs);
782 if (freeRegs > numPhysRegs)
783 freeRegs = numPhysRegs;
786 template <class Impl>
788 FrontEnd<Impl>::recvRetry()
790 assert(cacheBlocked);
791 if (retryPkt != NULL) {
792 assert(status == IcacheWaitRetry);
794 if (icachePort.sendTiming(retryPkt)) {
795 status = IcacheWaitResponse;
797 cacheBlocked = false;
800 // Access has been squashed since it was sent out. Just clear
801 // the cache being blocked.
802 cacheBlocked = false;
807 template <class Impl>
809 FrontEnd<Impl>::updateStatus()
811 bool serialize_block = !backEnd->robEmpty() || instBufferSize;
812 bool be_block = cpu->decoupledFrontEnd ? false : backEnd->isBlocked();
813 bool ret_val = false;
815 if (status == SerializeBlocked && !serialize_block) {
816 status = SerializeComplete;
820 if (status == BEBlocked && !be_block) {
821 // if (barrierInst) {
822 // status = SerializeBlocked;
831 template <class Impl>
833 FrontEnd<Impl>::checkBE()
835 bool be_block = cpu->decoupledFrontEnd ? false : backEnd->isBlocked();
837 if (status == Running || status == Idle) {
843 template <class Impl>
844 typename Impl::DynInstPtr
845 FrontEnd<Impl>::getInstFromCacheline()
848 if (status == SerializeComplete) {
849 DynInstPtr inst = barrierInst;
852 inst->clearSerializeBefore();
858 // @todo: Fix this magic number used here to handle word offset (and
859 // getting rid of PAL bit)
860 unsigned offset = (PC & cacheBlkMask) & ~3;
862 // PC of inst is not in this cache block
863 if (PC >= (cacheBlkPC + cacheBlkSize) || PC < cacheBlkPC || !cacheBlkValid) {
867 //////////////////////////
868 // Fetch one instruction
869 //////////////////////////
871 // Get a sequence number.
872 inst_seq = getAndIncrementInstSeq();
874 // Make sure this is a valid index.
875 assert(offset <= cacheBlkSize - sizeof(MachInst));
877 // Get the instruction from the array of the cache line.
878 inst = htog(*reinterpret_cast<MachInst *>(&cacheData[offset]));
880 #if THE_ISA == ALPHA_ISA
881 ExtMachInst decode_inst = TheISA::makeExtMI(inst, PC);
882 #elif THE_ISA == SPARC_ISA
883 ExtMachInst decode_inst = TheISA::makeExtMI(inst, tc);
886 // Create a new DynInst from the instruction fetched.
887 DynInstPtr instruction = new DynInst(decode_inst, PC, PC+sizeof(MachInst),
890 instruction->setThreadState(thread);
892 DPRINTF(FE, "Instruction [sn:%lli] created, with PC %#x\n%s\n",
893 inst_seq, instruction->readPC(),
894 instruction->staticInst->disassemble(PC));
896 instruction->traceData =
897 Trace::getInstRecord(curTick(), tc,
898 instruction->staticInst,
899 instruction->readPC());
901 // Increment stat of fetched instructions.
907 template <class Impl>
909 FrontEnd<Impl>::renameInst(DynInstPtr &inst)
911 DynInstPtr src_inst = NULL;
912 int num_src_regs = inst->numSrcRegs();
913 if (num_src_regs == 0) {
916 for (int i = 0; i < num_src_regs; ++i) {
917 src_inst = renameTable[inst->srcRegIdx(i)];
919 inst->setSrcInst(src_inst, i);
921 DPRINTF(FE, "[sn:%lli]: Src reg %i is inst [sn:%lli]\n",
922 inst->seqNum, (int)inst->srcRegIdx(i), src_inst->seqNum);
924 if (src_inst->isResultReady()) {
925 DPRINTF(FE, "Reg ready.\n");
926 inst->markSrcRegReady(i);
928 DPRINTF(FE, "Adding to dependent list.\n");
929 src_inst->addDependent(inst);
934 for (int i = 0; i < inst->numDestRegs(); ++i) {
935 RegIndex idx = inst->destRegIdx(i);
937 DPRINTF(FE, "Dest reg %i is now inst [sn:%lli], was previously "
939 (int)inst->destRegIdx(i), inst->seqNum,
940 renameTable[idx]->seqNum);
942 inst->setPrevDestInst(renameTable[idx], i);
944 renameTable[idx] = inst;
949 template <class Impl>
951 FrontEnd<Impl>::wakeFromQuiesce()
953 DPRINTF(FE, "Waking up from quiesce\n");
954 // Hopefully this is safe
958 template <class Impl>
960 FrontEnd<Impl>::switchOut()
963 cpu->signalSwitched();
966 template <class Impl>
968 FrontEnd<Impl>::doSwitchOut()
978 template <class Impl>
980 FrontEnd<Impl>::takeOverFrom(ThreadContext *old_tc)
982 assert(freeRegs == numPhysRegs);
983 fetchCacheLineNextCycle = true;
985 cacheBlkValid = false;
988 // pTable = params->pTable;
990 fetchFault = NoFault;
991 serializeNext = false;
995 interruptPending = false;
998 template <class Impl>
1000 FrontEnd<Impl>::dumpInsts()
1002 cprintf("instBuffer size: %i\n", instBuffer.size());
1004 InstBuffIt buff_it = instBuffer.begin();
1006 for (int num = 0; buff_it != instBuffer.end(); num++) {
1007 cprintf("Instruction:%i\nPC:%#x\n[tid:%i]\n[sn:%lli]\nIssued:%i\n"
1009 num, (*buff_it)->readPC(), (*buff_it)->threadNumber,
1010 (*buff_it)->seqNum, (*buff_it)->isIssued(),
1011 (*buff_it)->isSquashed());