cpu.hh (9919:803903a8dac1) cpu.hh (9920:028e4da64b42)
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

--- 526 unchanged lines hidden (view full) ---

535 ThreadID tid);
536
537 uint64_t readIntReg(int reg_idx);
538
539 TheISA::FloatReg readFloatReg(int reg_idx);
540
541 TheISA::FloatRegBits readFloatRegBits(int reg_idx);
542
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

--- 526 unchanged lines hidden (view full) ---

535 ThreadID tid);
536
537 uint64_t readIntReg(int reg_idx);
538
539 TheISA::FloatReg readFloatReg(int reg_idx);
540
541 TheISA::FloatRegBits readFloatRegBits(int reg_idx);
542
543 TheISA::CCReg readCCReg(int reg_idx);
544
543 void setIntReg(int reg_idx, uint64_t val);
544
545 void setFloatReg(int reg_idx, TheISA::FloatReg val);
546
547 void setFloatRegBits(int reg_idx, TheISA::FloatRegBits val);
548
545 void setIntReg(int reg_idx, uint64_t val);
546
547 void setFloatReg(int reg_idx, TheISA::FloatReg val);
548
549 void setFloatRegBits(int reg_idx, TheISA::FloatRegBits val);
550
551 void setCCReg(int reg_idx, TheISA::CCReg val);
552
549 uint64_t readArchIntReg(int reg_idx, ThreadID tid);
550
551 float readArchFloatReg(int reg_idx, ThreadID tid);
552
553 uint64_t readArchFloatRegInt(int reg_idx, ThreadID tid);
554
553 uint64_t readArchIntReg(int reg_idx, ThreadID tid);
554
555 float readArchFloatReg(int reg_idx, ThreadID tid);
556
557 uint64_t readArchFloatRegInt(int reg_idx, ThreadID tid);
558
559 TheISA::CCReg readArchCCReg(int reg_idx, ThreadID tid);
560
555 /** Architectural register accessors. Looks up in the commit
556 * rename table to obtain the true physical index of the
557 * architected register first, then accesses that physical
558 * register.
559 */
560 void setArchIntReg(int reg_idx, uint64_t val, ThreadID tid);
561
562 void setArchFloatReg(int reg_idx, float val, ThreadID tid);
563
564 void setArchFloatRegInt(int reg_idx, uint64_t val, ThreadID tid);
565
561 /** Architectural register accessors. Looks up in the commit
562 * rename table to obtain the true physical index of the
563 * architected register first, then accesses that physical
564 * register.
565 */
566 void setArchIntReg(int reg_idx, uint64_t val, ThreadID tid);
567
568 void setArchFloatReg(int reg_idx, float val, ThreadID tid);
569
570 void setArchFloatRegInt(int reg_idx, uint64_t val, ThreadID tid);
571
572 void setArchCCReg(int reg_idx, TheISA::CCReg val, ThreadID tid);
573
566 /** Sets the commit PC state of a specific thread. */
567 void pcState(const TheISA::PCState &newPCState, ThreadID tid);
568
569 /** Reads the commit PC state of a specific thread. */
570 TheISA::PCState pcState(ThreadID tid);
571
572 /** Reads the commit PC of a specific thread. */
573 Addr instAddr(ThreadID tid);

--- 267 unchanged lines hidden (view full) ---

841 Stats::Formula totalIpc;
842
843 //number of integer register file accesses
844 Stats::Scalar intRegfileReads;
845 Stats::Scalar intRegfileWrites;
846 //number of float register file accesses
847 Stats::Scalar fpRegfileReads;
848 Stats::Scalar fpRegfileWrites;
574 /** Sets the commit PC state of a specific thread. */
575 void pcState(const TheISA::PCState &newPCState, ThreadID tid);
576
577 /** Reads the commit PC state of a specific thread. */
578 TheISA::PCState pcState(ThreadID tid);
579
580 /** Reads the commit PC of a specific thread. */
581 Addr instAddr(ThreadID tid);

--- 267 unchanged lines hidden (view full) ---

849 Stats::Formula totalIpc;
850
851 //number of integer register file accesses
852 Stats::Scalar intRegfileReads;
853 Stats::Scalar intRegfileWrites;
854 //number of float register file accesses
855 Stats::Scalar fpRegfileReads;
856 Stats::Scalar fpRegfileWrites;
857 //number of CC register file accesses
858 Stats::Scalar ccRegfileReads;
859 Stats::Scalar ccRegfileWrites;
849 //number of misc
850 Stats::Scalar miscRegfileReads;
851 Stats::Scalar miscRegfileWrites;
852};
853
854#endif // __CPU_O3_CPU_HH__
860 //number of misc
861 Stats::Scalar miscRegfileReads;
862 Stats::Scalar miscRegfileWrites;
863};
864
865#endif // __CPU_O3_CPU_HH__