2 * Copyright (c) 2007 MIPS Technologies, Inc.
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.
28 * Authors: Korey Sewell
32 #ifndef __CPU_INORDER_CPU_HH__
33 #define __CPU_INORDER_CPU_HH__
41 #include "arch/isa_traits.hh"
42 #include "arch/registers.hh"
43 #include "arch/types.hh"
44 #include "base/statistics.hh"
45 #include "base/types.hh"
46 #include "config/full_system.hh"
47 #include "config/the_isa.hh"
48 #include "cpu/inorder/inorder_dyn_inst.hh"
49 #include "cpu/inorder/pipeline_stage.hh"
50 #include "cpu/inorder/pipeline_traits.hh"
51 #include "cpu/inorder/reg_dep_map.hh"
52 #include "cpu/inorder/thread_state.hh"
53 #include "cpu/o3/dep_graph.hh"
54 #include "cpu/o3/rename_map.hh"
55 #include "cpu/activity.hh"
56 #include "cpu/base.hh"
57 #include "cpu/simple_thread.hh"
58 #include "cpu/timebuf.hh"
59 #include "mem/packet.hh"
60 #include "mem/port.hh"
61 #include "mem/request.hh"
62 #include "sim/eventq.hh"
63 #include "sim/process.hh"
71 class InOrderCPU : public BaseCPU
75 typedef ThePipeline::Params Params;
76 typedef InOrderThreadState Thread;
79 typedef TheISA::IntReg IntReg;
80 typedef TheISA::FloatReg FloatReg;
81 typedef TheISA::FloatRegBits FloatRegBits;
82 typedef TheISA::MiscReg MiscReg;
83 typedef TheISA::RegIndex RegIndex;
86 typedef ThePipeline::DynInstPtr DynInstPtr;
87 typedef std::list<DynInstPtr>::iterator ListIt;
90 typedef TimeBuffer<InterStageStruct> StageQueue;
92 friend class Resource;
95 /** Constructs a CPU with the given parameters. */
96 InOrderCPU(Params *params);
104 ThreadID asid[ThePipeline::MaxThreads];
106 /** Type of core that this is */
107 std::string coreType;
109 // Only need for SE MODE
116 ThreadModel threadModel;
118 int readCpuId() { return cpu_id; }
120 void setCpuId(int val) { cpu_id = val; }
133 /** Overall CPU status. */
136 /** Define TickEvent for the CPU */
137 class TickEvent : public Event
140 /** Pointer to the CPU. */
144 /** Constructs a tick event. */
145 TickEvent(InOrderCPU *c);
147 /** Processes a tick event, calling tick() on the CPU. */
150 /** Returns the description of the tick event. */
151 const char *description();
154 /** The tick event used for scheduling CPU ticks. */
157 /** Schedule tick event, regardless of its current state. */
158 void scheduleTickEvent(int delay)
160 assert(!tickEvent.scheduled() || tickEvent.squashed());
161 reschedule(&tickEvent, nextCycle(curTick() + ticks(delay)), true);
164 /** Unschedule tick event, regardless of its current state. */
165 void unscheduleTickEvent()
167 if (tickEvent.scheduled())
172 // List of Events That can be scheduled from
174 // NOTE(1): The Resource Pool also uses this event list
175 // to schedule events broadcast to all resources interfaces
176 // NOTE(2): CPU Events usually need to schedule a corresponding resource
180 ActivateNextReadyThread,
191 static std::string eventNames[NumCPUEvents];
194 InOrderCPU_Pri = Event::CPU_Tick_Pri,
195 Syscall_Pri = Event::CPU_Tick_Pri + 9,
196 ActivateNextReadyThread_Pri = Event::CPU_Tick_Pri + 10
199 /** Define CPU Event */
200 class CPUEvent : public Event
206 CPUEventType cpuEventType;
214 /** Constructs a CPU event. */
215 CPUEvent(InOrderCPU *_cpu, CPUEventType e_type, Fault fault,
216 ThreadID _tid, DynInstPtr inst, CPUEventPri event_pri);
218 /** Set Type of Event To Be Scheduled */
219 void setEvent(CPUEventType e_type, Fault _fault, ThreadID _tid,
223 cpuEventType = e_type;
229 /** Processes a CPU event. */
232 /** Returns the description of the CPU event. */
233 const char *description();
235 /** Schedule Event */
236 void scheduleEvent(int delay);
238 /** Unschedule This Event */
239 void unscheduleEvent();
242 /** Schedule a CPU Event */
243 void scheduleCpuEvent(CPUEventType cpu_event, Fault fault, ThreadID tid,
244 DynInstPtr inst, unsigned delay = 0,
245 CPUEventPri event_pri = InOrderCPU_Pri);
248 /** Interface between the CPU and CPU resources. */
249 ResourcePool *resPool;
251 /** Instruction used to signify that there is no *real* instruction in
253 DynInstPtr dummyInst[ThePipeline::MaxThreads];
254 DynInstPtr dummyBufferInst;
255 DynInstPtr dummyReqInst;
257 /** Used by resources to signify a denied access to a resource. */
258 ResourceRequest *dummyReq[ThePipeline::MaxThreads];
260 /** Identifies the resource id that identifies a fetch
263 unsigned fetchPortIdx;
265 /** Identifies the resource id that identifies a data
268 unsigned dataPortIdx;
270 /** The Pipeline Stages for the CPU */
271 PipelineStage *pipelineStage[ThePipeline::NumStages];
273 /** Width (processing bandwidth) of each stage */
276 /** Program Counters */
277 TheISA::PCState pc[ThePipeline::MaxThreads];
279 /** Last Committed PC */
280 TheISA::PCState lastCommittedPC[ThePipeline::MaxThreads];
282 /** The Register File for the CPU */
284 FloatReg f[ThePipeline::MaxThreads][TheISA::NumFloatRegs];
285 FloatRegBits i[ThePipeline::MaxThreads][TheISA::NumFloatRegs];
287 TheISA::IntReg intRegs[ThePipeline::MaxThreads][TheISA::NumIntRegs];
290 TheISA::ISA isa[ThePipeline::MaxThreads];
292 /** Dependency Tracker for Integer & Floating Point Regs */
293 RegDepMap archRegDepMap[ThePipeline::MaxThreads];
295 /** Register Types Used in Dependency Tracking */
296 enum RegType { IntType, FloatType, MiscType, NumRegTypes};
298 /** Global communication structure */
299 TimeBuffer<TimeStruct> timeBuffer;
301 /** Communication structure that sits in between pipeline stages */
302 StageQueue *stageQueue[ThePipeline::NumStages-1];
304 TheISA::TLB *getITBPtr();
305 TheISA::TLB *getDTBPtr();
307 /** Accessor Type for the SkedCache */
308 typedef uint32_t SkedID;
310 /** Cache of Instruction Schedule using the instruction's name as a key */
311 static m5::hash_map<SkedID, ThePipeline::RSkedPtr> skedCache;
313 typedef m5::hash_map<SkedID, ThePipeline::RSkedPtr>::iterator SkedCacheIt;
315 /** Initialized to last iterator in map, signifying a invalid entry
318 SkedCacheIt endOfSkedIt;
320 ThePipeline::RSkedPtr frontEndSked;
322 /** Add a new instruction schedule to the schedule cache */
323 void addToSkedCache(DynInstPtr inst, ThePipeline::RSkedPtr inst_sked)
325 SkedID sked_id = genSkedID(inst);
326 assert(skedCache.find(sked_id) == skedCache.end());
327 skedCache[sked_id] = inst_sked;
331 /** Find a instruction schedule */
332 ThePipeline::RSkedPtr lookupSked(DynInstPtr inst)
334 SkedID sked_id = genSkedID(inst);
335 SkedCacheIt lookup_it = skedCache.find(sked_id);
337 if (lookup_it != endOfSkedIt) {
338 return (*lookup_it).second;
344 static const uint8_t INST_OPCLASS = 26;
345 static const uint8_t INST_LOAD = 25;
346 static const uint8_t INST_STORE = 24;
347 static const uint8_t INST_CONTROL = 23;
348 static const uint8_t INST_NONSPEC = 22;
349 static const uint8_t INST_DEST_REGS = 18;
350 static const uint8_t INST_SRC_REGS = 14;
351 static const uint8_t INST_SPLIT_DATA = 13;
353 inline SkedID genSkedID(DynInstPtr inst)
356 id = (inst->opClass() << INST_OPCLASS) |
357 (inst->isLoad() << INST_LOAD) |
358 (inst->isStore() << INST_STORE) |
359 (inst->isControl() << INST_CONTROL) |
360 (inst->isNonSpeculative() << INST_NONSPEC) |
361 (inst->numDestRegs() << INST_DEST_REGS) |
362 (inst->numSrcRegs() << INST_SRC_REGS) |
363 (inst->splitInst << INST_SPLIT_DATA);
367 ThePipeline::RSkedPtr createFrontEndSked();
368 ThePipeline::RSkedPtr createBackEndSked(DynInstPtr inst);
370 class StageScheduler {
372 ThePipeline::RSkedPtr rsked;
374 int nextTaskPriority;
377 StageScheduler(ThePipeline::RSkedPtr _rsked, int stage_num)
378 : rsked(_rsked), stageNum(stage_num),
382 void needs(int unit, int request) {
383 rsked->push(new ScheduleEntry(
384 stageNum, nextTaskPriority++, unit, request
388 void needs(int unit, int request, int param) {
389 rsked->push(new ScheduleEntry(
390 stageNum, nextTaskPriority++, unit, request, param
397 /** Registers statistics. */
400 /** Ticks CPU, calling tick() on each stage, and checking the overall
401 * activity to see if the CPU should deschedule itself.
405 /** Initialize the CPU */
408 /** Get a Memory Port */
409 Port* getPort(const std::string &if_name, int idx = 0);
412 /** HW return from error interrupt. */
413 Fault hwrei(ThreadID tid);
415 bool simPalCheck(int palFunc, ThreadID tid);
417 /** Returns the Fault for any valid interrupt. */
418 Fault getInterrupts();
420 /** Processes any an interrupt fault. */
421 void processInterrupts(Fault interrupt);
423 /** Halts the CPU. */
424 void halt() { panic("Halt not implemented!\n"); }
426 /** Update the Virt and Phys ports of all ThreadContexts to
427 * reflect change in memory connections. */
428 void updateMemPorts();
430 /** Check if this address is a valid instruction address. */
431 bool validInstAddr(Addr addr) { return true; }
433 /** Check if this address is a valid data address. */
434 bool validDataAddr(Addr addr) { return true; }
436 /** Schedule a syscall on the CPU */
437 void syscallContext(Fault fault, ThreadID tid, DynInstPtr inst,
440 /** Executes a syscall.*/
441 void syscall(int64_t callnum, ThreadID tid);
444 /** Schedule a trap on the CPU */
445 void trapContext(Fault fault, ThreadID tid, DynInstPtr inst, int delay = 0);
447 /** Perform trap to Handle Given Fault */
448 void trap(Fault fault, ThreadID tid, DynInstPtr inst);
450 /** Schedule thread activation on the CPU */
451 void activateContext(ThreadID tid, int delay = 0);
453 /** Add Thread to Active Threads List. */
454 void activateThread(ThreadID tid);
456 /** Activate Thread In Each Pipeline Stage */
457 void activateThreadInPipeline(ThreadID tid);
459 /** Schedule Thread Activation from Ready List */
460 void activateNextReadyContext(int delay = 0);
462 /** Add Thread From Ready List to Active Threads List. */
463 void activateNextReadyThread();
465 /** Schedule a thread deactivation on the CPU */
466 void deactivateContext(ThreadID tid, int delay = 0);
468 /** Remove from Active Thread List */
469 void deactivateThread(ThreadID tid);
471 /** Schedule a thread suspension on the CPU */
472 void suspendContext(ThreadID tid, int delay = 0);
474 /** Suspend Thread, Remove from Active Threads List, Add to Suspend List */
475 void suspendThread(ThreadID tid);
477 /** Schedule a thread halt on the CPU */
478 void haltContext(ThreadID tid, int delay = 0);
480 /** Halt Thread, Remove from Active Thread List, Place Thread on Halted
483 void haltThread(ThreadID tid);
485 /** squashFromMemStall() - sets up a squash event
486 * squashDueToMemStall() - squashes pipeline
487 * @note: maybe squashContext/squashThread would be better?
489 void squashFromMemStall(DynInstPtr inst, ThreadID tid, int delay = 0);
490 void squashDueToMemStall(int stage_num, InstSeqNum seq_num, ThreadID tid);
492 void removePipelineStalls(ThreadID tid);
493 void squashThreadInPipeline(ThreadID tid);
494 void squashBehindMemStall(int stage_num, InstSeqNum seq_num, ThreadID tid);
496 PipelineStage* getPipeStage(int stage_num);
501 hack_once("return a bogus context id");
505 /** Update The Order In Which We Process Threads. */
506 void updateThreadPriority();
508 /** Switches a Pipeline Stage to Active. (Unused currently) */
509 void switchToActive(int stage_idx)
510 { /*pipelineStage[stage_idx]->switchToActive();*/ }
512 /** Get the current instruction sequence number, and increment it. */
513 InstSeqNum getAndIncrementInstSeq(ThreadID tid)
514 { return globalSeqNum[tid]++; }
516 /** Get the current instruction sequence number, and increment it. */
517 InstSeqNum nextInstSeqNum(ThreadID tid)
518 { return globalSeqNum[tid]; }
520 /** Increment Instruction Sequence Number */
521 void incrInstSeqNum(ThreadID tid)
522 { globalSeqNum[tid]++; }
524 /** Set Instruction Sequence Number */
525 void setInstSeqNum(ThreadID tid, InstSeqNum seq_num)
527 globalSeqNum[tid] = seq_num;
530 /** Get & Update Next Event Number */
531 InstSeqNum getNextEventNum()
534 return cpuEventNum++;
540 /** Register file accessors */
541 uint64_t readIntReg(RegIndex reg_idx, ThreadID tid);
543 FloatReg readFloatReg(RegIndex reg_idx, ThreadID tid);
545 FloatRegBits readFloatRegBits(RegIndex reg_idx, ThreadID tid);
547 void setIntReg(RegIndex reg_idx, uint64_t val, ThreadID tid);
549 void setFloatReg(RegIndex reg_idx, FloatReg val, ThreadID tid);
551 void setFloatRegBits(RegIndex reg_idx, FloatRegBits val, ThreadID tid);
553 RegType inline getRegType(RegIndex reg_idx)
555 if (reg_idx < TheISA::FP_Base_DepTag)
557 else if (reg_idx < TheISA::Ctrl_Base_DepTag)
563 RegIndex flattenRegIdx(RegIndex reg_idx, RegType ®_type, ThreadID tid);
565 /** Reads a miscellaneous register. */
566 MiscReg readMiscRegNoEffect(int misc_reg, ThreadID tid = 0);
568 /** Reads a misc. register, including any side effects the read
569 * might have as defined by the architecture.
571 MiscReg readMiscReg(int misc_reg, ThreadID tid = 0);
573 /** Sets a miscellaneous register. */
574 void setMiscRegNoEffect(int misc_reg, const MiscReg &val,
577 /** Sets a misc. register, including any side effects the write
578 * might have as defined by the architecture.
580 void setMiscReg(int misc_reg, const MiscReg &val, ThreadID tid = 0);
582 /** Reads a int/fp/misc reg. from another thread depending on ISA-defined
585 uint64_t readRegOtherThread(unsigned misc_reg,
586 ThreadID tid = InvalidThreadID);
588 /** Sets a int/fp/misc reg. from another thread depending on an ISA-defined
591 void setRegOtherThread(unsigned misc_reg, const MiscReg &val,
594 /** Reads the commit PC of a specific thread. */
596 pcState(ThreadID tid)
601 /** Sets the commit PC of a specific thread. */
603 pcState(const TheISA::PCState &newPC, ThreadID tid)
608 Addr instAddr(ThreadID tid) { return pc[tid].instAddr(); }
609 Addr nextInstAddr(ThreadID tid) { return pc[tid].nextInstAddr(); }
610 MicroPC microPC(ThreadID tid) { return pc[tid].microPC(); }
612 /** Function to add instruction onto the head of the list of the
613 * instructions. Used when new instructions are fetched.
615 ListIt addInst(DynInstPtr inst);
617 /** Find instruction on instruction list */
618 ListIt findInst(InstSeqNum seq_num, ThreadID tid);
620 /** Function to tell the CPU that an instruction has completed. */
621 void instDone(DynInstPtr inst, ThreadID tid);
623 /** Add Instructions to the CPU Remove List*/
624 void addToRemoveList(DynInstPtr inst);
626 /** Remove an instruction from CPU */
627 void removeInst(DynInstPtr inst);
629 /** Remove all instructions younger than the given sequence number. */
630 void removeInstsUntil(const InstSeqNum &seq_num,ThreadID tid);
632 /** Removes the instruction pointed to by the iterator. */
633 inline void squashInstIt(const ListIt inst_it, ThreadID tid);
635 /** Cleans up all instructions on the instruction remove list. */
636 void cleanUpRemovedInsts();
638 /** Cleans up all events on the CPU event remove list. */
639 void cleanUpRemovedEvents();
641 /** Debug function to print all instructions on the list. */
644 /** Forwards an instruction read to the appropriate data
645 * resource (indexes into Resource Pool thru "dataPortIdx")
647 Fault read(DynInstPtr inst, Addr addr,
648 uint8_t *data, unsigned size, unsigned flags);
650 /** Forwards an instruction write. to the appropriate data
651 * resource (indexes into Resource Pool thru "dataPortIdx")
653 Fault write(DynInstPtr inst, uint8_t *data, unsigned size,
654 Addr addr, unsigned flags, uint64_t *write_res = NULL);
657 /** Per-Thread List of all the instructions in flight. */
658 std::list<DynInstPtr> instList[ThePipeline::MaxThreads];
660 /** List of all the instructions that will be removed at the end of this
663 std::queue<ListIt> removeList;
665 /** List of all the cpu event requests that will be removed at the end of
668 std::queue<Event*> cpuEventRemoveList;
670 /** Records if instructions need to be removed this cycle due to
671 * being retired or squashed.
673 bool removeInstsThisCycle;
675 /** True if there is non-speculative Inst Active In Pipeline. Lets any
676 * execution unit know, NOT to execute while the instruction is active.
678 bool nonSpecInstActive[ThePipeline::MaxThreads];
680 /** Instruction Seq. Num of current non-speculative instruction. */
681 InstSeqNum nonSpecSeqNum[ThePipeline::MaxThreads];
683 /** Instruction Seq. Num of last instruction squashed in pipeline */
684 InstSeqNum squashSeqNum[ThePipeline::MaxThreads];
686 /** Last Cycle that the CPU squashed instruction end. */
687 Tick lastSquashCycle[ThePipeline::MaxThreads];
689 std::list<ThreadID> fetchPriorityList;
692 /** Active Threads List */
693 std::list<ThreadID> activeThreads;
695 /** Ready Threads List */
696 std::list<ThreadID> readyThreads;
698 /** Suspended Threads List */
699 std::list<ThreadID> suspendedThreads;
701 /** Halted Threads List */
702 std::list<ThreadID> haltedThreads;
704 /** Thread Status Functions */
705 bool isThreadActive(ThreadID tid);
706 bool isThreadReady(ThreadID tid);
707 bool isThreadSuspended(ThreadID tid);
710 /** The activity recorder; used to tell if the CPU has any
711 * activity remaining or if it can go to idle and deschedule
714 ActivityRecorder activityRec;
717 /** Number of Active Threads in the CPU */
718 ThreadID numActiveThreads() { return activeThreads.size(); }
720 /** Thread id of active thread
721 * Only used for SwitchOnCacheMiss model.
722 * Assumes only 1 thread active
724 ThreadID activeThreadId()
726 if (numActiveThreads() > 0)
727 return activeThreads.front();
729 return InvalidThreadID;
733 /** Records that there was time buffer activity this cycle. */
734 void activityThisCycle() { activityRec.activity(); }
736 /** Changes a stage's status to active within the activity recorder. */
737 void activateStage(const int idx)
738 { activityRec.activateStage(idx); }
740 /** Changes a stage's status to inactive within the activity recorder. */
741 void deactivateStage(const int idx)
742 { activityRec.deactivateStage(idx); }
744 /** Wakes the CPU, rescheduling the CPU if it's not already active. */
748 virtual void wakeup();
751 // LL/SC debug functionality
752 unsigned stCondFails;
754 unsigned readStCondFailures()
755 { return stCondFails; }
757 unsigned setStCondFailures(unsigned st_fails)
758 { return stCondFails = st_fails; }
760 /** Returns a pointer to a thread context. */
761 ThreadContext *tcBase(ThreadID tid = 0)
763 return thread[tid]->getTC();
766 /** Count the Total Instructions Committed in the CPU. */
767 virtual Counter totalInstructions() const
771 for (ThreadID tid = 0; tid < (ThreadID)thread.size(); tid++)
772 total += thread[tid]->numInst;
778 /** Pointer to the system. */
782 /** The global sequence number counter. */
783 InstSeqNum globalSeqNum[ThePipeline::MaxThreads];
786 /** The global event number counter. */
787 InstSeqNum cpuEventNum;
789 /** Number of resource requests active in CPU **/
790 unsigned resReqCount;
795 /** Temporary fix for the lock flag, works in the UP case. */
798 /** Counter of how many stages have completed draining */
801 /** Pointers to all of the threads in the CPU. */
802 std::vector<Thread *> thread;
804 /** Pointer to the icache interface. */
805 MemInterface *icacheInterface;
807 /** Pointer to the dcache interface. */
808 MemInterface *dcacheInterface;
810 /** Whether or not the CPU should defer its registration. */
811 bool deferRegistration;
813 /** Per-Stage Instruction Tracing */
816 /** The cycle that the CPU was last running, used for statistics. */
817 Tick lastRunningCycle;
819 void updateContextSwitchStats();
820 unsigned instsPerSwitch;
821 Stats::Average instsPerCtxtSwitch;
822 Stats::Scalar numCtxtSwitches;
824 /** Update Thread , used for statistic purposes*/
825 inline void tickThreadStats();
827 /** Per-Thread Tick */
828 Stats::Vector threadCycles;
831 Stats::Scalar smtCycles;
833 /** Stat for total number of times the CPU is descheduled. */
834 Stats::Scalar timesIdled;
836 /** Stat for total number of cycles the CPU spends descheduled or no
839 Stats::Scalar idleCycles;
841 /** Stat for total number of cycles the CPU is active. */
842 Stats::Scalar runCycles;
844 /** Percentage of cycles a stage was active */
845 Stats::Formula activity;
847 /** Instruction Mix Stats */
848 Stats::Scalar comLoads;
849 Stats::Scalar comStores;
850 Stats::Scalar comBranches;
851 Stats::Scalar comNops;
852 Stats::Scalar comNonSpec;
853 Stats::Scalar comInts;
854 Stats::Scalar comFloats;
856 /** Stat for the number of committed instructions per thread. */
857 Stats::Vector committedInsts;
859 /** Stat for the number of committed instructions per thread. */
860 Stats::Vector smtCommittedInsts;
862 /** Stat for the total number of committed instructions. */
863 Stats::Scalar totalCommittedInsts;
865 /** Stat for the CPI per thread. */
868 /** Stat for the SMT-CPI per thread. */
869 Stats::Formula smtCpi;
871 /** Stat for the total CPI. */
872 Stats::Formula totalCpi;
874 /** Stat for the IPC per thread. */
877 /** Stat for the total IPC. */
878 Stats::Formula smtIpc;
880 /** Stat for the total IPC. */
881 Stats::Formula totalIpc;
884 #endif // __CPU_O3_CPU_HH__