cpu.hh revision 11302
1/*
2 * Copyright (c) 2011-2013 ARM Limited
3 * Copyright (c) 2013 Advanced Micro Devices, Inc.
4 * All rights reserved
5 *
6 * The license below extends only to copyright in the software and shall
7 * not be construed as granting a license to any other intellectual
8 * property including but not limited to intellectual property relating
9 * to a hardware implementation of the functionality of the software
10 * licensed hereunder.  You may use the software subject to the license
11 * terms below provided that you ensure that this notice is replicated
12 * unmodified and in its entirety in all distributions of the software,
13 * modified or unmodified, in source code or in binary form.
14 *
15 * Copyright (c) 2004-2005 The Regents of The University of Michigan
16 * Copyright (c) 2011 Regents of the University of California
17 * All rights reserved.
18 *
19 * Redistribution and use in source and binary forms, with or without
20 * modification, are permitted provided that the following conditions are
21 * met: redistributions of source code must retain the above copyright
22 * notice, this list of conditions and the following disclaimer;
23 * redistributions in binary form must reproduce the above copyright
24 * notice, this list of conditions and the following disclaimer in the
25 * documentation and/or other materials provided with the distribution;
26 * neither the name of the copyright holders nor the names of its
27 * contributors may be used to endorse or promote products derived from
28 * this software without specific prior written permission.
29 *
30 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
31 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
32 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
33 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
34 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
35 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
36 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
37 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
38 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
39 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41 *
42 * Authors: Kevin Lim
43 *          Korey Sewell
44 *          Rick Strong
45 */
46
47#ifndef __CPU_O3_CPU_HH__
48#define __CPU_O3_CPU_HH__
49
50#include <iostream>
51#include <list>
52#include <queue>
53#include <set>
54#include <vector>
55
56#include "arch/types.hh"
57#include "base/statistics.hh"
58#include "config/the_isa.hh"
59#include "cpu/o3/comm.hh"
60#include "cpu/o3/cpu_policy.hh"
61#include "cpu/o3/scoreboard.hh"
62#include "cpu/o3/thread_state.hh"
63#include "cpu/activity.hh"
64#include "cpu/base.hh"
65#include "cpu/simple_thread.hh"
66#include "cpu/timebuf.hh"
67//#include "cpu/o3/thread_context.hh"
68#include "params/DerivO3CPU.hh"
69#include "sim/process.hh"
70
71template <class>
72class Checker;
73class ThreadContext;
74template <class>
75class O3ThreadContext;
76
77class Checkpoint;
78class MemObject;
79class Process;
80
81struct BaseCPUParams;
82
83class BaseO3CPU : public BaseCPU
84{
85    //Stuff that's pretty ISA independent will go here.
86  public:
87    BaseO3CPU(BaseCPUParams *params);
88
89    void regStats();
90};
91
92/**
93 * FullO3CPU class, has each of the stages (fetch through commit)
94 * within it, as well as all of the time buffers between stages.  The
95 * tick() function for the CPU is defined here.
96 */
97template <class Impl>
98class FullO3CPU : public BaseO3CPU
99{
100  public:
101    // Typedefs from the Impl here.
102    typedef typename Impl::CPUPol CPUPolicy;
103    typedef typename Impl::DynInstPtr DynInstPtr;
104    typedef typename Impl::O3CPU O3CPU;
105
106    typedef O3ThreadState<Impl> ImplState;
107    typedef O3ThreadState<Impl> Thread;
108
109    typedef typename std::list<DynInstPtr>::iterator ListIt;
110
111    friend class O3ThreadContext<Impl>;
112
113  public:
114    enum Status {
115        Running,
116        Idle,
117        Halted,
118        Blocked,
119        SwitchedOut
120    };
121
122    TheISA::TLB * itb;
123    TheISA::TLB * dtb;
124
125    /** Overall CPU status. */
126    Status _status;
127
128  private:
129
130    /**
131     * IcachePort class for instruction fetch.
132     */
133    class IcachePort : public MasterPort
134    {
135      protected:
136        /** Pointer to fetch. */
137        DefaultFetch<Impl> *fetch;
138
139      public:
140        /** Default constructor. */
141        IcachePort(DefaultFetch<Impl> *_fetch, FullO3CPU<Impl>* _cpu)
142            : MasterPort(_cpu->name() + ".icache_port", _cpu), fetch(_fetch)
143        { }
144
145      protected:
146
147        /** Timing version of receive.  Handles setting fetch to the
148         * proper status to start fetching. */
149        virtual bool recvTimingResp(PacketPtr pkt);
150        virtual void recvTimingSnoopReq(PacketPtr pkt) { }
151
152        /** Handles doing a retry of a failed fetch. */
153        virtual void recvReqRetry();
154    };
155
156    /**
157     * DcachePort class for the load/store queue.
158     */
159    class DcachePort : public MasterPort
160    {
161      protected:
162
163        /** Pointer to LSQ. */
164        LSQ<Impl> *lsq;
165        FullO3CPU<Impl> *cpu;
166
167      public:
168        /** Default constructor. */
169        DcachePort(LSQ<Impl> *_lsq, FullO3CPU<Impl>* _cpu)
170            : MasterPort(_cpu->name() + ".dcache_port", _cpu), lsq(_lsq),
171              cpu(_cpu)
172        { }
173
174      protected:
175
176        /** Timing version of receive.  Handles writing back and
177         * completing the load or store that has returned from
178         * memory. */
179        virtual bool recvTimingResp(PacketPtr pkt);
180        virtual void recvTimingSnoopReq(PacketPtr pkt);
181
182        virtual void recvFunctionalSnoop(PacketPtr pkt)
183        {
184            // @todo: Is there a need for potential invalidation here?
185        }
186
187        /** Handles doing a retry of the previous send. */
188        virtual void recvReqRetry();
189
190        /**
191         * As this CPU requires snooping to maintain the load store queue
192         * change the behaviour from the base CPU port.
193         *
194         * @return true since we have to snoop
195         */
196        virtual bool isSnooping() const { return true; }
197    };
198
199    class TickEvent : public Event
200    {
201      private:
202        /** Pointer to the CPU. */
203        FullO3CPU<Impl> *cpu;
204
205      public:
206        /** Constructs a tick event. */
207        TickEvent(FullO3CPU<Impl> *c);
208
209        /** Processes a tick event, calling tick() on the CPU. */
210        void process();
211        /** Returns the description of the tick event. */
212        const char *description() const;
213    };
214
215    /** The tick event used for scheduling CPU ticks. */
216    TickEvent tickEvent;
217
218    /** Schedule tick event, regardless of its current state. */
219    void scheduleTickEvent(Cycles delay)
220    {
221        if (tickEvent.squashed())
222            reschedule(tickEvent, clockEdge(delay));
223        else if (!tickEvent.scheduled())
224            schedule(tickEvent, clockEdge(delay));
225    }
226
227    /** Unschedule tick event, regardless of its current state. */
228    void unscheduleTickEvent()
229    {
230        if (tickEvent.scheduled())
231            tickEvent.squash();
232    }
233
234    /**
235     * Check if the pipeline has drained and signal drain done.
236     *
237     * This method checks if a drain has been requested and if the CPU
238     * has drained successfully (i.e., there are no instructions in
239     * the pipeline). If the CPU has drained, it deschedules the tick
240     * event and signals the drain manager.
241     *
242     * @return False if a drain hasn't been requested or the CPU
243     * hasn't drained, true otherwise.
244     */
245    bool tryDrain();
246
247    /**
248     * Perform sanity checks after a drain.
249     *
250     * This method is called from drain() when it has determined that
251     * the CPU is fully drained when gem5 is compiled with the NDEBUG
252     * macro undefined. The intention of this method is to do more
253     * extensive tests than the isDrained() method to weed out any
254     * draining bugs.
255     */
256    void drainSanityCheck() const;
257
258    /** Check if a system is in a drained state. */
259    bool isDrained() const;
260
261  public:
262    /** Constructs a CPU with the given parameters. */
263    FullO3CPU(DerivO3CPUParams *params);
264    /** Destructor. */
265    ~FullO3CPU();
266
267    /** Registers statistics. */
268    void regStats() override;
269
270    ProbePointArg<PacketPtr> *ppInstAccessComplete;
271    ProbePointArg<std::pair<DynInstPtr, PacketPtr> > *ppDataAccessComplete;
272
273    /** Register probe points. */
274    void regProbePoints() override;
275
276    void demapPage(Addr vaddr, uint64_t asn)
277    {
278        this->itb->demapPage(vaddr, asn);
279        this->dtb->demapPage(vaddr, asn);
280    }
281
282    void demapInstPage(Addr vaddr, uint64_t asn)
283    {
284        this->itb->demapPage(vaddr, asn);
285    }
286
287    void demapDataPage(Addr vaddr, uint64_t asn)
288    {
289        this->dtb->demapPage(vaddr, asn);
290    }
291
292    /** Ticks CPU, calling tick() on each stage, and checking the overall
293     *  activity to see if the CPU should deschedule itself.
294     */
295    void tick();
296
297    /** Initialize the CPU */
298    void init() override;
299
300    void startup() override;
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    Counter totalInsts() const override;
320
321    /** Count the Total Ops (including micro ops) committed in the CPU. */
322    Counter totalOps() const override;
323
324    /** Add Thread to Active Threads List. */
325    void activateContext(ThreadID tid) override;
326
327    /** Remove Thread from Active Threads List */
328    void suspendContext(ThreadID tid) override;
329
330    /** Remove Thread from Active Threads List &&
331     *  Remove Thread Context from CPU.
332     */
333    void haltContext(ThreadID tid) override;
334
335    /** Update The Order In Which We Process Threads. */
336    void updateThreadPriority();
337
338    /** Is the CPU draining? */
339    bool isDraining() const { return drainState() == DrainState::Draining; }
340
341    void serializeThread(CheckpointOut &cp, ThreadID tid) const override;
342    void unserializeThread(CheckpointIn &cp, ThreadID tid) override;
343
344  public:
345    /** Executes a syscall.
346     * @todo: Determine if this needs to be virtual.
347     */
348    void syscall(int64_t callnum, ThreadID tid);
349
350    /** Starts draining the CPU's pipeline of all instructions in
351     * order to stop all memory accesses. */
352    DrainState drain() override;
353
354    /** Resumes execution after a drain. */
355    void drainResume() override;
356
357    /**
358     * Commit has reached a safe point to drain a thread.
359     *
360     * Commit calls this method to inform the pipeline that it has
361     * reached a point where it is not executed microcode and is about
362     * to squash uncommitted instructions to fully drain the pipeline.
363     */
364    void commitDrained(ThreadID tid);
365
366    /** Switches out this CPU. */
367    void switchOut() override;
368
369    /** Takes over from another CPU. */
370    void takeOverFrom(BaseCPU *oldCPU) override;
371
372    void verifyMemoryMode() const override;
373
374    /** Get the current instruction sequence number, and increment it. */
375    InstSeqNum getAndIncrementInstSeq()
376    { return globalSeqNum++; }
377
378    /** Traps to handle given fault. */
379    void trap(const Fault &fault, ThreadID tid, const StaticInstPtr &inst);
380
381    /** HW return from error interrupt. */
382    Fault hwrei(ThreadID tid);
383
384    bool simPalCheck(int palFunc, ThreadID tid);
385
386    /** Returns the Fault for any valid interrupt. */
387    Fault getInterrupts();
388
389    /** Processes any an interrupt fault. */
390    void processInterrupts(const Fault &interrupt);
391
392    /** Halts the CPU. */
393    void halt() { panic("Halt not implemented!\n"); }
394
395    /** Register accessors.  Index refers to the physical register index. */
396
397    /** Reads a miscellaneous register. */
398    TheISA::MiscReg readMiscRegNoEffect(int misc_reg, ThreadID tid) const;
399
400    /** Reads a misc. register, including any side effects the read
401     * might have as defined by the architecture.
402     */
403    TheISA::MiscReg readMiscReg(int misc_reg, ThreadID tid);
404
405    /** Sets a miscellaneous register. */
406    void setMiscRegNoEffect(int misc_reg, const TheISA::MiscReg &val,
407            ThreadID tid);
408
409    /** Sets a misc. register, including any side effects the write
410     * might have as defined by the architecture.
411     */
412    void setMiscReg(int misc_reg, const TheISA::MiscReg &val,
413            ThreadID tid);
414
415    uint64_t readIntReg(int reg_idx);
416
417    TheISA::FloatReg readFloatReg(int reg_idx);
418
419    TheISA::FloatRegBits readFloatRegBits(int reg_idx);
420
421    TheISA::CCReg readCCReg(int reg_idx);
422
423    void setIntReg(int reg_idx, uint64_t val);
424
425    void setFloatReg(int reg_idx, TheISA::FloatReg val);
426
427    void setFloatRegBits(int reg_idx, TheISA::FloatRegBits val);
428
429    void setCCReg(int reg_idx, TheISA::CCReg val);
430
431    uint64_t readArchIntReg(int reg_idx, ThreadID tid);
432
433    float readArchFloatReg(int reg_idx, ThreadID tid);
434
435    uint64_t readArchFloatRegInt(int reg_idx, ThreadID tid);
436
437    TheISA::CCReg readArchCCReg(int reg_idx, ThreadID tid);
438
439    /** Architectural register accessors.  Looks up in the commit
440     * rename table to obtain the true physical index of the
441     * architected register first, then accesses that physical
442     * register.
443     */
444    void setArchIntReg(int reg_idx, uint64_t val, ThreadID tid);
445
446    void setArchFloatReg(int reg_idx, float val, ThreadID tid);
447
448    void setArchFloatRegInt(int reg_idx, uint64_t val, ThreadID tid);
449
450    void setArchCCReg(int reg_idx, TheISA::CCReg val, ThreadID tid);
451
452    /** Sets the commit PC state of a specific thread. */
453    void pcState(const TheISA::PCState &newPCState, ThreadID tid);
454
455    /** Reads the commit PC state of a specific thread. */
456    TheISA::PCState pcState(ThreadID tid);
457
458    /** Reads the commit PC of a specific thread. */
459    Addr instAddr(ThreadID tid);
460
461    /** Reads the commit micro PC of a specific thread. */
462    MicroPC microPC(ThreadID tid);
463
464    /** Reads the next PC of a specific thread. */
465    Addr nextInstAddr(ThreadID tid);
466
467    /** Initiates a squash of all in-flight instructions for a given
468     * thread.  The source of the squash is an external update of
469     * state through the TC.
470     */
471    void squashFromTC(ThreadID tid);
472
473    /** Function to add instruction onto the head of the list of the
474     *  instructions.  Used when new instructions are fetched.
475     */
476    ListIt addInst(DynInstPtr &inst);
477
478    /** Function to tell the CPU that an instruction has completed. */
479    void instDone(ThreadID tid, DynInstPtr &inst);
480
481    /** Remove an instruction from the front end of the list.  There's
482     *  no restriction on location of the instruction.
483     */
484    void removeFrontInst(DynInstPtr &inst);
485
486    /** Remove all instructions that are not currently in the ROB.
487     *  There's also an option to not squash delay slot instructions.*/
488    void removeInstsNotInROB(ThreadID tid);
489
490    /** Remove all instructions younger than the given sequence number. */
491    void removeInstsUntil(const InstSeqNum &seq_num, ThreadID tid);
492
493    /** Removes the instruction pointed to by the iterator. */
494    inline void squashInstIt(const ListIt &instIt, ThreadID tid);
495
496    /** Cleans up all instructions on the remove list. */
497    void cleanUpRemovedInsts();
498
499    /** Debug function to print all instructions on the list. */
500    void dumpInsts();
501
502  public:
503#ifndef NDEBUG
504    /** Count of total number of dynamic instructions in flight. */
505    int instcount;
506#endif
507
508    /** List of all the instructions in flight. */
509    std::list<DynInstPtr> instList;
510
511    /** List of all the instructions that will be removed at the end of this
512     *  cycle.
513     */
514    std::queue<ListIt> removeList;
515
516#ifdef DEBUG
517    /** Debug structure to keep track of the sequence numbers still in
518     * flight.
519     */
520    std::set<InstSeqNum> snList;
521#endif
522
523    /** Records if instructions need to be removed this cycle due to
524     *  being retired or squashed.
525     */
526    bool removeInstsThisCycle;
527
528  protected:
529    /** The fetch stage. */
530    typename CPUPolicy::Fetch fetch;
531
532    /** The decode stage. */
533    typename CPUPolicy::Decode decode;
534
535    /** The dispatch stage. */
536    typename CPUPolicy::Rename rename;
537
538    /** The issue/execute/writeback stages. */
539    typename CPUPolicy::IEW iew;
540
541    /** The commit stage. */
542    typename CPUPolicy::Commit commit;
543
544    /** The register file. */
545    PhysRegFile regFile;
546
547    /** The free list. */
548    typename CPUPolicy::FreeList freeList;
549
550    /** The rename map. */
551    typename CPUPolicy::RenameMap renameMap[Impl::MaxThreads];
552
553    /** The commit rename map. */
554    typename CPUPolicy::RenameMap commitRenameMap[Impl::MaxThreads];
555
556    /** The re-order buffer. */
557    typename CPUPolicy::ROB rob;
558
559    /** Active Threads List */
560    std::list<ThreadID> activeThreads;
561
562    /** Integer Register Scoreboard */
563    Scoreboard scoreboard;
564
565    std::vector<TheISA::ISA *> isa;
566
567    /** Instruction port. Note that it has to appear after the fetch stage. */
568    IcachePort icachePort;
569
570    /** Data port. Note that it has to appear after the iew stages */
571    DcachePort dcachePort;
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    virtual void wakeup(ThreadID tid) override;
637
638    /** Gets a free thread id. Use if thread ids change across system. */
639    ThreadID getFreeTid();
640
641  public:
642    /** Returns a pointer to a thread context. */
643    ThreadContext *
644    tcBase(ThreadID tid)
645    {
646        return thread[tid]->getTC();
647    }
648
649    /** The global sequence number counter. */
650    InstSeqNum globalSeqNum;//[Impl::MaxThreads];
651
652    /** Pointer to the checker, which can dynamically verify
653     * instruction results at run time.  This can be set to NULL if it
654     * is not being used.
655     */
656    Checker<Impl> *checker;
657
658    /** Pointer to the system. */
659    System *system;
660
661    /** Pointers to all of the threads in the CPU. */
662    std::vector<Thread *> thread;
663
664    /** Threads Scheduled to Enter CPU */
665    std::list<int> cpuWaitList;
666
667    /** The cycle that the CPU was last running, used for statistics. */
668    Cycles lastRunningCycle;
669
670    /** The cycle that the CPU was last activated by a new thread*/
671    Tick lastActivatedCycle;
672
673    /** Mapping for system thread id to cpu id */
674    std::map<ThreadID, unsigned> threadMap;
675
676    /** Available thread ids in the cpu*/
677    std::vector<ThreadID> tids;
678
679    /** CPU read function, forwards read to LSQ. */
680    Fault read(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
681               int load_idx)
682    {
683        return this->iew.ldstQueue.read(req, sreqLow, sreqHigh, load_idx);
684    }
685
686    /** CPU write function, forwards write to LSQ. */
687    Fault write(RequestPtr &req, RequestPtr &sreqLow, RequestPtr &sreqHigh,
688                uint8_t *data, int store_idx)
689    {
690        return this->iew.ldstQueue.write(req, sreqLow, sreqHigh,
691                                         data, store_idx);
692    }
693
694    /** Used by the fetch unit to get a hold of the instruction port. */
695    MasterPort &getInstPort() override { return icachePort; }
696
697    /** Get the dcache port (used to find block size for translations). */
698    MasterPort &getDataPort() override { return dcachePort; }
699
700    /** Stat for total number of times the CPU is descheduled. */
701    Stats::Scalar timesIdled;
702    /** Stat for total number of cycles the CPU spends descheduled. */
703    Stats::Scalar idleCycles;
704    /** Stat for total number of cycles the CPU spends descheduled due to a
705     * quiesce operation or waiting for an interrupt. */
706    Stats::Scalar quiesceCycles;
707    /** Stat for the number of committed instructions per thread. */
708    Stats::Vector committedInsts;
709    /** Stat for the number of committed ops (including micro ops) per thread. */
710    Stats::Vector committedOps;
711    /** Stat for the CPI per thread. */
712    Stats::Formula cpi;
713    /** Stat for the total CPI. */
714    Stats::Formula totalCpi;
715    /** Stat for the IPC per thread. */
716    Stats::Formula ipc;
717    /** Stat for the total IPC. */
718    Stats::Formula totalIpc;
719
720    //number of integer register file accesses
721    Stats::Scalar intRegfileReads;
722    Stats::Scalar intRegfileWrites;
723    //number of float register file accesses
724    Stats::Scalar fpRegfileReads;
725    Stats::Scalar fpRegfileWrites;
726    //number of CC register file accesses
727    Stats::Scalar ccRegfileReads;
728    Stats::Scalar ccRegfileWrites;
729    //number of misc
730    Stats::Scalar miscRegfileReads;
731    Stats::Scalar miscRegfileWrites;
732};
733
734#endif // __CPU_O3_CPU_HH__
735