cpu.hh revision 8627:86358c187837
1/*
2 * Copyright (c) 2004-2005 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer;
10 * redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution;
13 * neither the name of the copyright holders nor the names of its
14 * contributors may be used to endorse or promote products derived from
15 * this software without specific prior written permission.
16 *
17 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 *
29 * Authors: Kevin Lim
30 *          Korey Sewell
31 *          Rick Strong
32 */
33
34#ifndef __CPU_O3_CPU_HH__
35#define __CPU_O3_CPU_HH__
36
37#include <iostream>
38#include <list>
39#include <queue>
40#include <set>
41#include <vector>
42
43#include "arch/types.hh"
44#include "base/statistics.hh"
45#include "config/full_system.hh"
46#include "config/the_isa.hh"
47#include "config/use_checker.hh"
48#include "cpu/o3/comm.hh"
49#include "cpu/o3/cpu_policy.hh"
50#include "cpu/o3/scoreboard.hh"
51#include "cpu/o3/thread_state.hh"
52#include "cpu/activity.hh"
53#include "cpu/base.hh"
54#include "cpu/simple_thread.hh"
55#include "cpu/timebuf.hh"
56//#include "cpu/o3/thread_context.hh"
57#include "params/DerivO3CPU.hh"
58#include "sim/process.hh"
59
60template <class>
61class Checker;
62class ThreadContext;
63template <class>
64class O3ThreadContext;
65
66class Checkpoint;
67class MemObject;
68class Process;
69
70class BaseCPUParams;
71
72class BaseO3CPU : public BaseCPU
73{
74    //Stuff that's pretty ISA independent will go here.
75  public:
76    BaseO3CPU(BaseCPUParams *params);
77
78    void regStats();
79};
80
81/**
82 * FullO3CPU class, has each of the stages (fetch through commit)
83 * within it, as well as all of the time buffers between stages.  The
84 * tick() function for the CPU is defined here.
85 */
86template <class Impl>
87class FullO3CPU : public BaseO3CPU
88{
89  public:
90    // Typedefs from the Impl here.
91    typedef typename Impl::CPUPol CPUPolicy;
92    typedef typename Impl::DynInstPtr DynInstPtr;
93    typedef typename Impl::O3CPU O3CPU;
94
95    typedef O3ThreadState<Impl> ImplState;
96    typedef O3ThreadState<Impl> Thread;
97
98    typedef typename std::list<DynInstPtr>::iterator ListIt;
99
100    friend class O3ThreadContext<Impl>;
101
102  public:
103    enum Status {
104        Running,
105        Idle,
106        Halted,
107        Blocked,
108        SwitchedOut
109    };
110
111    TheISA::TLB * itb;
112    TheISA::TLB * dtb;
113
114    /** Overall CPU status. */
115    Status _status;
116
117    /** Per-thread status in CPU, used for SMT.  */
118    Status _threadStatus[Impl::MaxThreads];
119
120  private:
121    class TickEvent : public Event
122    {
123      private:
124        /** Pointer to the CPU. */
125        FullO3CPU<Impl> *cpu;
126
127      public:
128        /** Constructs a tick event. */
129        TickEvent(FullO3CPU<Impl> *c);
130
131        /** Processes a tick event, calling tick() on the CPU. */
132        void process();
133        /** Returns the description of the tick event. */
134        const char *description() const;
135    };
136
137    /** The tick event used for scheduling CPU ticks. */
138    TickEvent tickEvent;
139
140    /** Schedule tick event, regardless of its current state. */
141    void scheduleTickEvent(int delay)
142    {
143        if (tickEvent.squashed())
144            reschedule(tickEvent, nextCycle(curTick() + ticks(delay)));
145        else if (!tickEvent.scheduled())
146            schedule(tickEvent, nextCycle(curTick() + ticks(delay)));
147    }
148
149    /** Unschedule tick event, regardless of its current state. */
150    void unscheduleTickEvent()
151    {
152        if (tickEvent.scheduled())
153            tickEvent.squash();
154    }
155
156    class ActivateThreadEvent : public Event
157    {
158      private:
159        /** Number of Thread to Activate */
160        ThreadID tid;
161
162        /** Pointer to the CPU. */
163        FullO3CPU<Impl> *cpu;
164
165      public:
166        /** Constructs the event. */
167        ActivateThreadEvent();
168
169        /** Initialize Event */
170        void init(int thread_num, FullO3CPU<Impl> *thread_cpu);
171
172        /** Processes the event, calling activateThread() on the CPU. */
173        void process();
174
175        /** Returns the description of the event. */
176        const char *description() const;
177    };
178
179    /** Schedule thread to activate , regardless of its current state. */
180    void
181    scheduleActivateThreadEvent(ThreadID tid, int delay)
182    {
183        // Schedule thread to activate, regardless of its current state.
184        if (activateThreadEvent[tid].squashed())
185            reschedule(activateThreadEvent[tid],
186                nextCycle(curTick() + ticks(delay)));
187        else if (!activateThreadEvent[tid].scheduled()) {
188            Tick when = nextCycle(curTick() + ticks(delay));
189
190            // Check if the deallocateEvent is also scheduled, and make
191            // sure they do not happen at same time causing a sleep that
192            // is never woken from.
193            if (deallocateContextEvent[tid].scheduled() &&
194                deallocateContextEvent[tid].when() == when) {
195                when++;
196            }
197
198            schedule(activateThreadEvent[tid], when);
199        }
200    }
201
202    /** Unschedule actiavte thread event, regardless of its current state. */
203    void
204    unscheduleActivateThreadEvent(ThreadID tid)
205    {
206        if (activateThreadEvent[tid].scheduled())
207            activateThreadEvent[tid].squash();
208    }
209
210    /** The tick event used for scheduling CPU ticks. */
211    ActivateThreadEvent activateThreadEvent[Impl::MaxThreads];
212
213    class DeallocateContextEvent : public Event
214    {
215      private:
216        /** Number of Thread to deactivate */
217        ThreadID tid;
218
219        /** Should the thread be removed from the CPU? */
220        bool remove;
221
222        /** Pointer to the CPU. */
223        FullO3CPU<Impl> *cpu;
224
225      public:
226        /** Constructs the event. */
227        DeallocateContextEvent();
228
229        /** Initialize Event */
230        void init(int thread_num, FullO3CPU<Impl> *thread_cpu);
231
232        /** Processes the event, calling activateThread() on the CPU. */
233        void process();
234
235        /** Sets whether the thread should also be removed from the CPU. */
236        void setRemove(bool _remove) { remove = _remove; }
237
238        /** Returns the description of the event. */
239        const char *description() const;
240    };
241
242    /** Schedule cpu to deallocate thread context.*/
243    void
244    scheduleDeallocateContextEvent(ThreadID tid, bool remove, int delay)
245    {
246        // Schedule thread to activate, regardless of its current state.
247        if (deallocateContextEvent[tid].squashed())
248            reschedule(deallocateContextEvent[tid],
249                nextCycle(curTick() + ticks(delay)));
250        else if (!deallocateContextEvent[tid].scheduled())
251            schedule(deallocateContextEvent[tid],
252                nextCycle(curTick() + ticks(delay)));
253    }
254
255    /** Unschedule thread deallocation in CPU */
256    void
257    unscheduleDeallocateContextEvent(ThreadID tid)
258    {
259        if (deallocateContextEvent[tid].scheduled())
260            deallocateContextEvent[tid].squash();
261    }
262
263    /** The tick event used for scheduling CPU ticks. */
264    DeallocateContextEvent deallocateContextEvent[Impl::MaxThreads];
265
266  public:
267    /** Constructs a CPU with the given parameters. */
268    FullO3CPU(DerivO3CPUParams *params);
269    /** Destructor. */
270    ~FullO3CPU();
271
272    /** Registers statistics. */
273    void regStats();
274
275    void demapPage(Addr vaddr, uint64_t asn)
276    {
277        this->itb->demapPage(vaddr, asn);
278        this->dtb->demapPage(vaddr, asn);
279    }
280
281    void demapInstPage(Addr vaddr, uint64_t asn)
282    {
283        this->itb->demapPage(vaddr, asn);
284    }
285
286    void demapDataPage(Addr vaddr, uint64_t asn)
287    {
288        this->dtb->demapPage(vaddr, asn);
289    }
290
291    /** Returns a specific port. */
292    Port *getPort(const std::string &if_name, int idx);
293
294    /** Ticks CPU, calling tick() on each stage, and checking the overall
295     *  activity to see if the CPU should deschedule itself.
296     */
297    void tick();
298
299    /** Initialize the CPU */
300    void init();
301
302    /** Returns the Number of Active Threads in the CPU */
303    int numActiveThreads()
304    { return activeThreads.size(); }
305
306    /** Add Thread to Active Threads List */
307    void activateThread(ThreadID tid);
308
309    /** Remove Thread from Active Threads List */
310    void deactivateThread(ThreadID tid);
311
312    /** Setup CPU to insert a thread's context */
313    void insertThread(ThreadID tid);
314
315    /** Remove all of a thread's context from CPU */
316    void removeThread(ThreadID tid);
317
318    /** Count the Total Instructions Committed in the CPU. */
319    virtual Counter totalInstructions() const;
320
321    /** Add Thread to Active Threads List. */
322    void activateContext(ThreadID tid, int delay);
323
324    /** Remove Thread from Active Threads List */
325    void suspendContext(ThreadID tid);
326
327    /** Remove Thread from Active Threads List &&
328     *  Possibly Remove Thread Context from CPU.
329     */
330    bool deallocateContext(ThreadID tid, bool remove, int delay = 1);
331
332    /** Remove Thread from Active Threads List &&
333     *  Remove Thread Context from CPU.
334     */
335    void haltContext(ThreadID tid);
336
337    /** Activate a Thread When CPU Resources are Available. */
338    void activateWhenReady(ThreadID tid);
339
340    /** Add or Remove a Thread Context in the CPU. */
341    void doContextSwitch();
342
343    /** Update The Order In Which We Process Threads. */
344    void updateThreadPriority();
345
346    /** Serialize state. */
347    virtual void serialize(std::ostream &os);
348
349    /** Unserialize from a checkpoint. */
350    virtual void unserialize(Checkpoint *cp, const std::string &section);
351
352  public:
353#if !FULL_SYSTEM
354    /** Executes a syscall.
355     * @todo: Determine if this needs to be virtual.
356     */
357    void syscall(int64_t callnum, ThreadID tid);
358#endif
359
360    /** Starts draining the CPU's pipeline of all instructions in
361     * order to stop all memory accesses. */
362    virtual unsigned int drain(Event *drain_event);
363
364    /** Resumes execution after a drain. */
365    virtual void resume();
366
367    /** Signals to this CPU that a stage has completed switching out. */
368    void signalDrained();
369
370    /** Switches out this CPU. */
371    virtual void switchOut();
372
373    /** Takes over from another CPU. */
374    virtual void takeOverFrom(BaseCPU *oldCPU);
375
376    /** Get the current instruction sequence number, and increment it. */
377    InstSeqNum getAndIncrementInstSeq()
378    { return globalSeqNum++; }
379
380    /** Traps to handle given fault. */
381    void trap(Fault fault, ThreadID tid, StaticInstPtr inst);
382
383#if FULL_SYSTEM
384    /** HW return from error interrupt. */
385    Fault hwrei(ThreadID tid);
386
387    bool simPalCheck(int palFunc, ThreadID tid);
388
389    /** Returns the Fault for any valid interrupt. */
390    Fault getInterrupts();
391
392    /** Processes any an interrupt fault. */
393    void processInterrupts(Fault interrupt);
394
395    /** Halts the CPU. */
396    void halt() { panic("Halt not implemented!\n"); }
397
398    /** Update the Virt and Phys ports of all ThreadContexts to
399     * reflect change in memory connections. */
400    void updateMemPorts();
401
402    /** Check if this address is a valid instruction address. */
403    bool validInstAddr(Addr addr) { return true; }
404
405    /** Check if this address is a valid data address. */
406    bool validDataAddr(Addr addr) { return true; }
407#endif
408
409    /** Register accessors.  Index refers to the physical register index. */
410
411    /** Reads a miscellaneous register. */
412    TheISA::MiscReg readMiscRegNoEffect(int misc_reg, ThreadID tid);
413
414    /** Reads a misc. register, including any side effects the read
415     * might have as defined by the architecture.
416     */
417    TheISA::MiscReg readMiscReg(int misc_reg, ThreadID tid);
418
419    /** Sets a miscellaneous register. */
420    void setMiscRegNoEffect(int misc_reg, const TheISA::MiscReg &val,
421            ThreadID tid);
422
423    /** Sets a misc. register, including any side effects the write
424     * might have as defined by the architecture.
425     */
426    void setMiscReg(int misc_reg, const TheISA::MiscReg &val,
427            ThreadID tid);
428
429    uint64_t readIntReg(int reg_idx);
430
431    TheISA::FloatReg readFloatReg(int reg_idx);
432
433    TheISA::FloatRegBits readFloatRegBits(int reg_idx);
434
435    void setIntReg(int reg_idx, uint64_t val);
436
437    void setFloatReg(int reg_idx, TheISA::FloatReg val);
438
439    void setFloatRegBits(int reg_idx, TheISA::FloatRegBits val);
440
441    uint64_t readArchIntReg(int reg_idx, ThreadID tid);
442
443    float readArchFloatReg(int reg_idx, ThreadID tid);
444
445    uint64_t readArchFloatRegInt(int reg_idx, ThreadID tid);
446
447    /** Architectural register accessors.  Looks up in the commit
448     * rename table to obtain the true physical index of the
449     * architected register first, then accesses that physical
450     * register.
451     */
452    void setArchIntReg(int reg_idx, uint64_t val, ThreadID tid);
453
454    void setArchFloatReg(int reg_idx, float val, ThreadID tid);
455
456    void setArchFloatRegInt(int reg_idx, uint64_t val, ThreadID tid);
457
458    /** Sets the commit PC state of a specific thread. */
459    void pcState(const TheISA::PCState &newPCState, ThreadID tid);
460
461    /** Reads the commit PC state of a specific thread. */
462    TheISA::PCState pcState(ThreadID tid);
463
464    /** Reads the commit PC of a specific thread. */
465    Addr instAddr(ThreadID tid);
466
467    /** Reads the commit micro PC of a specific thread. */
468    MicroPC microPC(ThreadID tid);
469
470    /** Reads the next PC of a specific thread. */
471    Addr nextInstAddr(ThreadID tid);
472
473    /** Initiates a squash of all in-flight instructions for a given
474     * thread.  The source of the squash is an external update of
475     * state through the TC.
476     */
477    void squashFromTC(ThreadID tid);
478
479    /** Function to add instruction onto the head of the list of the
480     *  instructions.  Used when new instructions are fetched.
481     */
482    ListIt addInst(DynInstPtr &inst);
483
484    /** Function to tell the CPU that an instruction has completed. */
485    void instDone(ThreadID tid);
486
487    /** Remove an instruction from the front end of the list.  There's
488     *  no restriction on location of the instruction.
489     */
490    void removeFrontInst(DynInstPtr &inst);
491
492    /** Remove all instructions that are not currently in the ROB.
493     *  There's also an option to not squash delay slot instructions.*/
494    void removeInstsNotInROB(ThreadID tid);
495
496    /** Remove all instructions younger than the given sequence number. */
497    void removeInstsUntil(const InstSeqNum &seq_num, ThreadID tid);
498
499    /** Removes the instruction pointed to by the iterator. */
500    inline void squashInstIt(const ListIt &instIt, ThreadID tid);
501
502    /** Cleans up all instructions on the remove list. */
503    void cleanUpRemovedInsts();
504
505    /** Debug function to print all instructions on the list. */
506    void dumpInsts();
507
508  public:
509#ifndef NDEBUG
510    /** Count of total number of dynamic instructions in flight. */
511    int instcount;
512#endif
513
514    /** List of all the instructions in flight. */
515    std::list<DynInstPtr> instList;
516
517    /** List of all the instructions that will be removed at the end of this
518     *  cycle.
519     */
520    std::queue<ListIt> removeList;
521
522#ifdef DEBUG
523    /** Debug structure to keep track of the sequence numbers still in
524     * flight.
525     */
526    std::set<InstSeqNum> snList;
527#endif
528
529    /** Records if instructions need to be removed this cycle due to
530     *  being retired or squashed.
531     */
532    bool removeInstsThisCycle;
533
534  protected:
535    /** The fetch stage. */
536    typename CPUPolicy::Fetch fetch;
537
538    /** The decode stage. */
539    typename CPUPolicy::Decode decode;
540
541    /** The dispatch stage. */
542    typename CPUPolicy::Rename rename;
543
544    /** The issue/execute/writeback stages. */
545    typename CPUPolicy::IEW iew;
546
547    /** The commit stage. */
548    typename CPUPolicy::Commit commit;
549
550    /** The register file. */
551    typename CPUPolicy::RegFile regFile;
552
553    /** The free list. */
554    typename CPUPolicy::FreeList freeList;
555
556    /** The rename map. */
557    typename CPUPolicy::RenameMap renameMap[Impl::MaxThreads];
558
559    /** The commit rename map. */
560    typename CPUPolicy::RenameMap commitRenameMap[Impl::MaxThreads];
561
562    /** The re-order buffer. */
563    typename CPUPolicy::ROB rob;
564
565    /** Active Threads List */
566    std::list<ThreadID> activeThreads;
567
568    /** Integer Register Scoreboard */
569    Scoreboard scoreboard;
570
571    TheISA::ISA isa[Impl::MaxThreads];
572
573  public:
574    /** Enum to give each stage a specific index, so when calling
575     *  activateStage() or deactivateStage(), they can specify which stage
576     *  is being activated/deactivated.
577     */
578    enum StageIdx {
579        FetchIdx,
580        DecodeIdx,
581        RenameIdx,
582        IEWIdx,
583        CommitIdx,
584        NumStages };
585
586    /** Typedefs from the Impl to get the structs that each of the
587     *  time buffers should use.
588     */
589    typedef typename CPUPolicy::TimeStruct TimeStruct;
590
591    typedef typename CPUPolicy::FetchStruct FetchStruct;
592
593    typedef typename CPUPolicy::DecodeStruct DecodeStruct;
594
595    typedef typename CPUPolicy::RenameStruct RenameStruct;
596
597    typedef typename CPUPolicy::IEWStruct IEWStruct;
598
599    /** The main time buffer to do backwards communication. */
600    TimeBuffer<TimeStruct> timeBuffer;
601
602    /** The fetch stage's instruction queue. */
603    TimeBuffer<FetchStruct> fetchQueue;
604
605    /** The decode stage's instruction queue. */
606    TimeBuffer<DecodeStruct> decodeQueue;
607
608    /** The rename stage's instruction queue. */
609    TimeBuffer<RenameStruct> renameQueue;
610
611    /** The IEW stage's instruction queue. */
612    TimeBuffer<IEWStruct> iewQueue;
613
614  private:
615    /** The activity recorder; used to tell if the CPU has any
616     * activity remaining or if it can go to idle and deschedule
617     * itself.
618     */
619    ActivityRecorder activityRec;
620
621  public:
622    /** Records that there was time buffer activity this cycle. */
623    void activityThisCycle() { activityRec.activity(); }
624
625    /** Changes a stage's status to active within the activity recorder. */
626    void activateStage(const StageIdx idx)
627    { activityRec.activateStage(idx); }
628
629    /** Changes a stage's status to inactive within the activity recorder. */
630    void deactivateStage(const StageIdx idx)
631    { activityRec.deactivateStage(idx); }
632
633    /** Wakes the CPU, rescheduling the CPU if it's not already active. */
634    void wakeCPU();
635
636#if FULL_SYSTEM
637    virtual void wakeup();
638#endif
639
640    /** Gets a free thread id. Use if thread ids change across system. */
641    ThreadID getFreeTid();
642
643  public:
644    /** Returns a pointer to a thread context. */
645    ThreadContext *
646    tcBase(ThreadID tid)
647    {
648        return thread[tid]->getTC();
649    }
650
651    /** The global sequence number counter. */
652    InstSeqNum globalSeqNum;//[Impl::MaxThreads];
653
654#if USE_CHECKER
655    /** Pointer to the checker, which can dynamically verify
656     * instruction results at run time.  This can be set to NULL if it
657     * is not being used.
658     */
659    Checker<DynInstPtr> *checker;
660#endif
661
662    /** Pointer to the system. */
663    System *system;
664
665    /** Event to call process() on once draining has completed. */
666    Event *drainEvent;
667
668    /** Counter of how many stages have completed draining. */
669    int drainCount;
670
671    /** Pointers to all of the threads in the CPU. */
672    std::vector<Thread *> thread;
673
674    /** Whether or not the CPU should defer its registration. */
675    bool deferRegistration;
676
677    /** Is there a context switch pending? */
678    bool contextSwitch;
679
680    /** Threads Scheduled to Enter CPU */
681    std::list<int> cpuWaitList;
682
683    /** The cycle that the CPU was last running, used for statistics. */
684    Tick lastRunningCycle;
685
686    /** The cycle that the CPU was last activated by a new thread*/
687    Tick lastActivatedCycle;
688
689    /** Mapping for system thread id to cpu id */
690    std::map<ThreadID, unsigned> threadMap;
691
692    /** Available thread ids in the cpu*/
693    std::vector<ThreadID> tids;
694
695    /** CPU read function, forwards read to LSQ. */
696    Fault read(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
697               uint8_t *data, int load_idx)
698    {
699        return this->iew.ldstQueue.read(req, sreqLow, sreqHigh,
700                                        data, load_idx);
701    }
702
703    /** CPU write function, forwards write to LSQ. */
704    Fault write(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
705                uint8_t *data, int store_idx)
706    {
707        return this->iew.ldstQueue.write(req, sreqLow, sreqHigh,
708                                         data, store_idx);
709    }
710
711    /** Get the dcache port (used to find block size for translations). */
712    Port *getDcachePort() { return this->iew.ldstQueue.getDcachePort(); }
713
714    Addr lockAddr;
715
716    /** Temporary fix for the lock flag, works in the UP case. */
717    bool lockFlag;
718
719    /** Stat for total number of times the CPU is descheduled. */
720    Stats::Scalar timesIdled;
721    /** Stat for total number of cycles the CPU spends descheduled. */
722    Stats::Scalar idleCycles;
723    /** Stat for total number of cycles the CPU spends descheduled due to a
724     * quiesce operation or waiting for an interrupt. */
725    Stats::Scalar quiesceCycles;
726    /** Stat for the number of committed instructions per thread. */
727    Stats::Vector committedInsts;
728    /** Stat for the total number of committed instructions. */
729    Stats::Scalar totalCommittedInsts;
730    /** Stat for the CPI per thread. */
731    Stats::Formula cpi;
732    /** Stat for the total CPI. */
733    Stats::Formula totalCpi;
734    /** Stat for the IPC per thread. */
735    Stats::Formula ipc;
736    /** Stat for the total IPC. */
737    Stats::Formula totalIpc;
738
739    //number of integer register file accesses
740    Stats::Scalar intRegfileReads;
741    Stats::Scalar intRegfileWrites;
742    //number of float register file accesses
743    Stats::Scalar fpRegfileReads;
744    Stats::Scalar fpRegfileWrites;
745    //number of misc
746    Stats::Scalar miscRegfileReads;
747    Stats::Scalar miscRegfileWrites;
748};
749
750#endif // __CPU_O3_CPU_HH__
751