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() const;
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() const;
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;
256 DynInstPtr dummyTrapInst[ThePipeline::MaxThreads];
258 /** Used by resources to signify a denied access to a resource. */
259 ResourceRequest *dummyReq[ThePipeline::MaxThreads];
261 /** Identifies the resource id that identifies a fetch
264 unsigned fetchPortIdx;
266 /** Identifies the resource id that identifies a data
269 unsigned dataPortIdx;
271 /** The Pipeline Stages for the CPU */
272 PipelineStage *pipelineStage[ThePipeline::NumStages];
274 /** Width (processing bandwidth) of each stage */
277 /** Program Counters */
278 TheISA::PCState pc[ThePipeline::MaxThreads];
280 /** Last Committed PC */
281 TheISA::PCState lastCommittedPC[ThePipeline::MaxThreads];
283 /** The Register File for the CPU */
285 FloatReg f[ThePipeline::MaxThreads][TheISA::NumFloatRegs];
286 FloatRegBits i[ThePipeline::MaxThreads][TheISA::NumFloatRegs];
288 TheISA::IntReg intRegs[ThePipeline::MaxThreads][TheISA::NumIntRegs];
291 TheISA::ISA isa[ThePipeline::MaxThreads];
293 /** Dependency Tracker for Integer & Floating Point Regs */
294 RegDepMap archRegDepMap[ThePipeline::MaxThreads];
296 /** Register Types Used in Dependency Tracking */
297 enum RegType { IntType, FloatType, MiscType, NumRegTypes};
299 /** Global communication structure */
300 TimeBuffer<TimeStruct> timeBuffer;
302 /** Communication structure that sits in between pipeline stages */
303 StageQueue *stageQueue[ThePipeline::NumStages-1];
305 TheISA::TLB *getITBPtr();
306 TheISA::TLB *getDTBPtr();
308 Decoder *getDecoderPtr();
310 /** Accessor Type for the SkedCache */
311 typedef uint32_t SkedID;
313 /** Cache of Instruction Schedule using the instruction's name as a key */
314 static m5::hash_map<SkedID, ThePipeline::RSkedPtr> skedCache;
316 typedef m5::hash_map<SkedID, ThePipeline::RSkedPtr>::iterator SkedCacheIt;
318 /** Initialized to last iterator in map, signifying a invalid entry
321 SkedCacheIt endOfSkedIt;
323 ThePipeline::RSkedPtr frontEndSked;
324 ThePipeline::RSkedPtr faultSked;
326 /** Add a new instruction schedule to the schedule cache */
327 void addToSkedCache(DynInstPtr inst, ThePipeline::RSkedPtr inst_sked)
329 SkedID sked_id = genSkedID(inst);
330 assert(skedCache.find(sked_id) == skedCache.end());
331 skedCache[sked_id] = inst_sked;
335 /** Find a instruction schedule */
336 ThePipeline::RSkedPtr lookupSked(DynInstPtr inst)
338 SkedID sked_id = genSkedID(inst);
339 SkedCacheIt lookup_it = skedCache.find(sked_id);
341 if (lookup_it != endOfSkedIt) {
342 return (*lookup_it).second;
348 static const uint8_t INST_OPCLASS = 26;
349 static const uint8_t INST_LOAD = 25;
350 static const uint8_t INST_STORE = 24;
351 static const uint8_t INST_CONTROL = 23;
352 static const uint8_t INST_NONSPEC = 22;
353 static const uint8_t INST_DEST_REGS = 18;
354 static const uint8_t INST_SRC_REGS = 14;
355 static const uint8_t INST_SPLIT_DATA = 13;
357 inline SkedID genSkedID(DynInstPtr inst)
360 id = (inst->opClass() << INST_OPCLASS) |
361 (inst->isLoad() << INST_LOAD) |
362 (inst->isStore() << INST_STORE) |
363 (inst->isControl() << INST_CONTROL) |
364 (inst->isNonSpeculative() << INST_NONSPEC) |
365 (inst->numDestRegs() << INST_DEST_REGS) |
366 (inst->numSrcRegs() << INST_SRC_REGS) |
367 (inst->splitInst << INST_SPLIT_DATA);
371 ThePipeline::RSkedPtr createFrontEndSked();
372 ThePipeline::RSkedPtr createFaultSked();
373 ThePipeline::RSkedPtr createBackEndSked(DynInstPtr inst);
375 class StageScheduler {
377 ThePipeline::RSkedPtr rsked;
379 int nextTaskPriority;
382 StageScheduler(ThePipeline::RSkedPtr _rsked, int stage_num)
383 : rsked(_rsked), stageNum(stage_num),
387 void needs(int unit, int request) {
388 rsked->push(new ScheduleEntry(
389 stageNum, nextTaskPriority++, unit, request
393 void needs(int unit, int request, int param) {
394 rsked->push(new ScheduleEntry(
395 stageNum, nextTaskPriority++, unit, request, param
402 /** Registers statistics. */
405 /** Ticks CPU, calling tick() on each stage, and checking the overall
406 * activity to see if the CPU should deschedule itself.
410 /** Initialize the CPU */
413 /** Get a Memory Port */
414 Port* getPort(const std::string &if_name, int idx = 0);
417 /** HW return from error interrupt. */
418 Fault hwrei(ThreadID tid);
420 bool simPalCheck(int palFunc, ThreadID tid);
422 void checkForInterrupts();
424 /** Returns the Fault for any valid interrupt. */
425 Fault getInterrupts();
427 /** Processes any an interrupt fault. */
428 void processInterrupts(Fault interrupt);
430 /** Halts the CPU. */
431 void halt() { panic("Halt not implemented!\n"); }
433 /** Check if this address is a valid instruction address. */
434 bool validInstAddr(Addr addr) { return true; }
436 /** Check if this address is a valid data address. */
437 bool validDataAddr(Addr addr) { return true; }
439 /** Schedule a syscall on the CPU */
440 void syscallContext(Fault fault, ThreadID tid, DynInstPtr inst,
443 /** Executes a syscall.*/
444 void syscall(int64_t callnum, ThreadID tid);
447 /** Schedule a trap on the CPU */
448 void trapContext(Fault fault, ThreadID tid, DynInstPtr inst, int delay = 0);
450 /** Perform trap to Handle Given Fault */
451 void trap(Fault fault, ThreadID tid, DynInstPtr inst);
453 /** Schedule thread activation on the CPU */
454 void activateContext(ThreadID tid, int delay = 0);
456 /** Add Thread to Active Threads List. */
457 void activateThread(ThreadID tid);
459 /** Activate Thread In Each Pipeline Stage */
460 void activateThreadInPipeline(ThreadID tid);
462 /** Schedule Thread Activation from Ready List */
463 void activateNextReadyContext(int delay = 0);
465 /** Add Thread From Ready List to Active Threads List. */
466 void activateNextReadyThread();
468 /** Schedule a thread deactivation on the CPU */
469 void deactivateContext(ThreadID tid, int delay = 0);
471 /** Remove from Active Thread List */
472 void deactivateThread(ThreadID tid);
474 /** Schedule a thread suspension on the CPU */
475 void suspendContext(ThreadID tid);
477 /** Suspend Thread, Remove from Active Threads List, Add to Suspend List */
478 void suspendThread(ThreadID tid);
480 /** Schedule a thread halt on the CPU */
481 void haltContext(ThreadID tid);
483 /** Halt Thread, Remove from Active Thread List, Place Thread on Halted
486 void haltThread(ThreadID tid);
488 /** squashFromMemStall() - sets up a squash event
489 * squashDueToMemStall() - squashes pipeline
490 * @note: maybe squashContext/squashThread would be better?
492 void squashFromMemStall(DynInstPtr inst, ThreadID tid, int delay = 0);
493 void squashDueToMemStall(int stage_num, InstSeqNum seq_num, ThreadID tid);
495 void removePipelineStalls(ThreadID tid);
496 void squashThreadInPipeline(ThreadID tid);
497 void squashBehindMemStall(int stage_num, InstSeqNum seq_num, ThreadID tid);
499 PipelineStage* getPipeStage(int stage_num);
504 hack_once("return a bogus context id");
508 /** Update The Order In Which We Process Threads. */
509 void updateThreadPriority();
511 /** Switches a Pipeline Stage to Active. (Unused currently) */
512 void switchToActive(int stage_idx)
513 { /*pipelineStage[stage_idx]->switchToActive();*/ }
515 /** Get the current instruction sequence number, and increment it. */
516 InstSeqNum getAndIncrementInstSeq(ThreadID tid)
517 { return globalSeqNum[tid]++; }
519 /** Get the current instruction sequence number, and increment it. */
520 InstSeqNum nextInstSeqNum(ThreadID tid)
521 { return globalSeqNum[tid]; }
523 /** Increment Instruction Sequence Number */
524 void incrInstSeqNum(ThreadID tid)
525 { globalSeqNum[tid]++; }
527 /** Set Instruction Sequence Number */
528 void setInstSeqNum(ThreadID tid, InstSeqNum seq_num)
530 globalSeqNum[tid] = seq_num;
533 /** Get & Update Next Event Number */
534 InstSeqNum getNextEventNum()
537 return cpuEventNum++;
543 /** Register file accessors */
544 uint64_t readIntReg(RegIndex reg_idx, ThreadID tid);
546 FloatReg readFloatReg(RegIndex reg_idx, ThreadID tid);
548 FloatRegBits readFloatRegBits(RegIndex reg_idx, ThreadID tid);
550 void setIntReg(RegIndex reg_idx, uint64_t val, ThreadID tid);
552 void setFloatReg(RegIndex reg_idx, FloatReg val, ThreadID tid);
554 void setFloatRegBits(RegIndex reg_idx, FloatRegBits val, ThreadID tid);
556 RegType inline getRegType(RegIndex reg_idx)
558 if (reg_idx < TheISA::FP_Base_DepTag)
560 else if (reg_idx < TheISA::Ctrl_Base_DepTag)
566 RegIndex flattenRegIdx(RegIndex reg_idx, RegType ®_type, ThreadID tid);
568 /** Reads a miscellaneous register. */
569 MiscReg readMiscRegNoEffect(int misc_reg, ThreadID tid = 0);
571 /** Reads a misc. register, including any side effects the read
572 * might have as defined by the architecture.
574 MiscReg readMiscReg(int misc_reg, ThreadID tid = 0);
576 /** Sets a miscellaneous register. */
577 void setMiscRegNoEffect(int misc_reg, const MiscReg &val,
580 /** Sets a misc. register, including any side effects the write
581 * might have as defined by the architecture.
583 void setMiscReg(int misc_reg, const MiscReg &val, ThreadID tid = 0);
585 /** Reads a int/fp/misc reg. from another thread depending on ISA-defined
588 uint64_t readRegOtherThread(unsigned misc_reg,
589 ThreadID tid = InvalidThreadID);
591 /** Sets a int/fp/misc reg. from another thread depending on an ISA-defined
594 void setRegOtherThread(unsigned misc_reg, const MiscReg &val,
597 /** Reads the commit PC of a specific thread. */
599 pcState(ThreadID tid)
604 /** Sets the commit PC of a specific thread. */
606 pcState(const TheISA::PCState &newPC, ThreadID tid)
611 Addr instAddr(ThreadID tid) { return pc[tid].instAddr(); }
612 Addr nextInstAddr(ThreadID tid) { return pc[tid].nextInstAddr(); }
613 MicroPC microPC(ThreadID tid) { return pc[tid].microPC(); }
615 /** Function to add instruction onto the head of the list of the
616 * instructions. Used when new instructions are fetched.
618 ListIt addInst(DynInstPtr inst);
620 /** Find instruction on instruction list */
621 ListIt findInst(InstSeqNum seq_num, ThreadID tid);
623 /** Function to tell the CPU that an instruction has completed. */
624 void instDone(DynInstPtr inst, ThreadID tid);
626 /** Add Instructions to the CPU Remove List*/
627 void addToRemoveList(DynInstPtr inst);
629 /** Remove an instruction from CPU */
630 void removeInst(DynInstPtr inst);
632 /** Remove all instructions younger than the given sequence number. */
633 void removeInstsUntil(const InstSeqNum &seq_num,ThreadID tid);
635 /** Removes the instruction pointed to by the iterator. */
636 inline void squashInstIt(const ListIt inst_it, ThreadID tid);
638 /** Cleans up all instructions on the instruction remove list. */
639 void cleanUpRemovedInsts();
641 /** Cleans up all events on the CPU event remove list. */
642 void cleanUpRemovedEvents();
644 /** Debug function to print all instructions on the list. */
647 /** Forwards an instruction read to the appropriate data
648 * resource (indexes into Resource Pool thru "dataPortIdx")
650 Fault read(DynInstPtr inst, Addr addr,
651 uint8_t *data, unsigned size, unsigned flags);
653 /** Forwards an instruction write. to the appropriate data
654 * resource (indexes into Resource Pool thru "dataPortIdx")
656 Fault write(DynInstPtr inst, uint8_t *data, unsigned size,
657 Addr addr, unsigned flags, uint64_t *write_res = NULL);
660 /** Per-Thread List of all the instructions in flight. */
661 std::list<DynInstPtr> instList[ThePipeline::MaxThreads];
663 /** List of all the instructions that will be removed at the end of this
666 std::queue<ListIt> removeList;
668 bool trapPending[ThePipeline::MaxThreads];
670 /** List of all the cpu event requests that will be removed at the end of
673 std::queue<Event*> cpuEventRemoveList;
675 /** Records if instructions need to be removed this cycle due to
676 * being retired or squashed.
678 bool removeInstsThisCycle;
680 /** True if there is non-speculative Inst Active In Pipeline. Lets any
681 * execution unit know, NOT to execute while the instruction is active.
683 bool nonSpecInstActive[ThePipeline::MaxThreads];
685 /** Instruction Seq. Num of current non-speculative instruction. */
686 InstSeqNum nonSpecSeqNum[ThePipeline::MaxThreads];
688 /** Instruction Seq. Num of last instruction squashed in pipeline */
689 InstSeqNum squashSeqNum[ThePipeline::MaxThreads];
691 /** Last Cycle that the CPU squashed instruction end. */
692 Tick lastSquashCycle[ThePipeline::MaxThreads];
694 std::list<ThreadID> fetchPriorityList;
697 /** Active Threads List */
698 std::list<ThreadID> activeThreads;
700 /** Ready Threads List */
701 std::list<ThreadID> readyThreads;
703 /** Suspended Threads List */
704 std::list<ThreadID> suspendedThreads;
706 /** Halted Threads List */
707 std::list<ThreadID> haltedThreads;
709 /** Thread Status Functions */
710 bool isThreadActive(ThreadID tid);
711 bool isThreadReady(ThreadID tid);
712 bool isThreadSuspended(ThreadID tid);
715 /** The activity recorder; used to tell if the CPU has any
716 * activity remaining or if it can go to idle and deschedule
719 ActivityRecorder activityRec;
722 /** Number of Active Threads in the CPU */
723 ThreadID numActiveThreads() { return activeThreads.size(); }
725 /** Thread id of active thread
726 * Only used for SwitchOnCacheMiss model.
727 * Assumes only 1 thread active
729 ThreadID activeThreadId()
731 if (numActiveThreads() > 0)
732 return activeThreads.front();
734 return InvalidThreadID;
738 /** Records that there was time buffer activity this cycle. */
739 void activityThisCycle() { activityRec.activity(); }
741 /** Changes a stage's status to active within the activity recorder. */
742 void activateStage(const int idx)
743 { activityRec.activateStage(idx); }
745 /** Changes a stage's status to inactive within the activity recorder. */
746 void deactivateStage(const int idx)
747 { activityRec.deactivateStage(idx); }
749 /** Wakes the CPU, rescheduling the CPU if it's not already active. */
753 virtual void wakeup();
756 /* LL/SC debug functionality
757 unsigned stCondFails;
759 unsigned readStCondFailures()
760 { return stCondFails; }
762 unsigned setStCondFailures(unsigned st_fails)
763 { return stCondFails = st_fails; }
766 /** Returns a pointer to a thread context. */
767 ThreadContext *tcBase(ThreadID tid = 0)
769 return thread[tid]->getTC();
772 /** Count the Total Instructions Committed in the CPU. */
773 virtual Counter totalInstructions() const
777 for (ThreadID tid = 0; tid < (ThreadID)thread.size(); tid++)
778 total += thread[tid]->numInst;
784 /** Pointer to the system. */
788 /** The global sequence number counter. */
789 InstSeqNum globalSeqNum[ThePipeline::MaxThreads];
792 /** The global event number counter. */
793 InstSeqNum cpuEventNum;
795 /** Number of resource requests active in CPU **/
796 unsigned resReqCount;
801 /** Temporary fix for the lock flag, works in the UP case. */
804 /** Counter of how many stages have completed draining */
807 /** Pointers to all of the threads in the CPU. */
808 std::vector<Thread *> thread;
810 /** Pointer to the icache interface. */
811 MemInterface *icacheInterface;
813 /** Pointer to the dcache interface. */
814 MemInterface *dcacheInterface;
816 /** Whether or not the CPU should defer its registration. */
817 bool deferRegistration;
819 /** Per-Stage Instruction Tracing */
822 /** The cycle that the CPU was last running, used for statistics. */
823 Tick lastRunningCycle;
825 void updateContextSwitchStats();
826 unsigned instsPerSwitch;
827 Stats::Average instsPerCtxtSwitch;
828 Stats::Scalar numCtxtSwitches;
830 /** Update Thread , used for statistic purposes*/
831 inline void tickThreadStats();
833 /** Per-Thread Tick */
834 Stats::Vector threadCycles;
837 Stats::Scalar smtCycles;
839 /** Stat for total number of times the CPU is descheduled. */
840 Stats::Scalar timesIdled;
842 /** Stat for total number of cycles the CPU spends descheduled or no
845 Stats::Scalar idleCycles;
847 /** Stat for total number of cycles the CPU is active. */
848 Stats::Scalar runCycles;
850 /** Percentage of cycles a stage was active */
851 Stats::Formula activity;
853 /** Instruction Mix Stats */
854 Stats::Scalar comLoads;
855 Stats::Scalar comStores;
856 Stats::Scalar comBranches;
857 Stats::Scalar comNops;
858 Stats::Scalar comNonSpec;
859 Stats::Scalar comInts;
860 Stats::Scalar comFloats;
862 /** Stat for the number of committed instructions per thread. */
863 Stats::Vector committedInsts;
865 /** Stat for the number of committed instructions per thread. */
866 Stats::Vector smtCommittedInsts;
868 /** Stat for the total number of committed instructions. */
869 Stats::Scalar totalCommittedInsts;
871 /** Stat for the CPI per thread. */
874 /** Stat for the SMT-CPI per thread. */
875 Stats::Formula smtCpi;
877 /** Stat for the total CPI. */
878 Stats::Formula totalCpi;
880 /** Stat for the IPC per thread. */
883 /** Stat for the total IPC. */
884 Stats::Formula smtIpc;
886 /** Stat for the total IPC. */
887 Stats::Formula totalIpc;
890 #endif // __CPU_O3_CPU_HH__