summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2009-07-08 23:02:21 -0700
committerGabe Black <gblack@eecs.umich.edu>2009-07-08 23:02:21 -0700
commit5c37d10624e0f9a9568f1eb1527832c55addba59 (patch)
tree7283390137489bc23fd4685e6ede83925479ee48 /src/arch
parent9bf22992ee1f5088ae5e513acaa7aabee048c4bd (diff)
downloadgem5-5c37d10624e0f9a9568f1eb1527832c55addba59.tar.xz
Registers: Eliminate the ISA defined RegFile class.
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/alpha/miscregfile.hh1
-rw-r--r--src/arch/alpha/regfile.cc16
-rw-r--r--src/arch/alpha/regfile.hh16
-rw-r--r--src/arch/arm/faults.cc2
-rw-r--r--src/arch/arm/regfile/misc_regfile.hh2
-rw-r--r--src/arch/arm/regfile/regfile.hh14
-rw-r--r--src/arch/mips/faults.cc2
-rw-r--r--src/arch/mips/regfile/misc_regfile.hh3
-rw-r--r--src/arch/mips/regfile/regfile.hh21
-rw-r--r--src/arch/sparc/isa_traits.hh2
-rw-r--r--src/arch/sparc/regfile.hh14
-rw-r--r--src/arch/x86/regfile.hh13
12 files changed, 0 insertions, 106 deletions
diff --git a/src/arch/alpha/miscregfile.hh b/src/arch/alpha/miscregfile.hh
index 0d95e5a6d..b231ea855 100644
--- a/src/arch/alpha/miscregfile.hh
+++ b/src/arch/alpha/miscregfile.hh
@@ -57,7 +57,6 @@ enum MiscRegIndex
class MiscRegFile
{
public:
- friend class RegFile;
typedef uint64_t InternalProcReg;
protected:
diff --git a/src/arch/alpha/regfile.cc b/src/arch/alpha/regfile.cc
index 15df83859..8b226a9cf 100644
--- a/src/arch/alpha/regfile.cc
+++ b/src/arch/alpha/regfile.cc
@@ -53,22 +53,6 @@ const int reg_redir[NumIntRegs] = {
#endif
void
-RegFile::serialize(EventManager *em, ostream &os)
-{
-#if FULL_SYSTEM
- SERIALIZE_SCALAR(intrflag);
-#endif
-}
-
-void
-RegFile::unserialize(EventManager *em, Checkpoint *cp, const string &section)
-{
-#if FULL_SYSTEM
- UNSERIALIZE_SCALAR(intrflag);
-#endif
-}
-
-void
copyRegs(ThreadContext *src, ThreadContext *dest)
{
// First loop through the integer registers.
diff --git a/src/arch/alpha/regfile.hh b/src/arch/alpha/regfile.hh
index 39c56e57a..e7374036f 100644
--- a/src/arch/alpha/regfile.hh
+++ b/src/arch/alpha/regfile.hh
@@ -46,22 +46,6 @@ namespace AlphaISA {
// redirected register map, really only used for the full system case.
extern const int reg_redir[NumIntRegs];
-class RegFile {
- public:
-#if FULL_SYSTEM
- int intrflag; // interrupt flag
-#endif // FULL_SYSTEM
-
- void
- clear()
- {
- }
-
- void serialize(EventManager *em, std::ostream &os);
- void unserialize(EventManager *em, Checkpoint *cp,
- const std::string &section);
-};
-
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff --git a/src/arch/arm/faults.cc b/src/arch/arm/faults.cc
index b79c09174..3d882c97f 100644
--- a/src/arch/arm/faults.cc
+++ b/src/arch/arm/faults.cc
@@ -433,7 +433,6 @@ void InterruptFault::invoke(ThreadContext *tc)
{
#if FULL_SYSTEM
DPRINTF(Arm,"%s encountered.\n", name());
- //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
setExceptionState(tc,0x0A);
Addr HandlerBase;
@@ -469,7 +468,6 @@ void ReservedInstructionFault::invoke(ThreadContext *tc)
{
#if FULL_SYSTEM
DPRINTF(Arm,"%s encountered.\n", name());
- //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
setExceptionState(tc,0x0A);
Addr HandlerBase;
HandlerBase= vect() + tc->readMiscRegNoEffect(ArmISA::EBase); // Offset 0x180 - General Exception Vector
diff --git a/src/arch/arm/regfile/misc_regfile.hh b/src/arch/arm/regfile/misc_regfile.hh
index c2b2f39d7..e89826956 100644
--- a/src/arch/arm/regfile/misc_regfile.hh
+++ b/src/arch/arm/regfile/misc_regfile.hh
@@ -84,8 +84,6 @@ namespace ArmISA
assert(misc_reg < NumMiscRegs);
miscRegFile[misc_reg] = val;
}
-
- friend class RegFile;
};
} // namespace ArmISA
diff --git a/src/arch/arm/regfile/regfile.hh b/src/arch/arm/regfile/regfile.hh
index cd2d4ee2c..c7f23c704 100644
--- a/src/arch/arm/regfile/regfile.hh
+++ b/src/arch/arm/regfile/regfile.hh
@@ -93,20 +93,6 @@ namespace ArmISA
r14_abt
};
- class RegFile
- {
- public:
-
- void clear()
- {}
-
- void serialize(EventManager *em, std::ostream &os)
- {}
- void unserialize(EventManager *em, Checkpoint *cp,
- const std::string &section)
- {}
- };
-
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff --git a/src/arch/mips/faults.cc b/src/arch/mips/faults.cc
index 63884e837..347d041a3 100644
--- a/src/arch/mips/faults.cc
+++ b/src/arch/mips/faults.cc
@@ -435,7 +435,6 @@ void InterruptFault::invoke(ThreadContext *tc)
{
#if FULL_SYSTEM
DPRINTF(MipsPRA,"%s encountered.\n", name());
- //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
setExceptionState(tc,0x0A);
Addr HandlerBase;
@@ -471,7 +470,6 @@ void ReservedInstructionFault::invoke(ThreadContext *tc)
{
#if FULL_SYSTEM
DPRINTF(MipsPRA,"%s encountered.\n", name());
- //RegFile *Reg = tc->getRegFilePtr(); // Get pointer to the register fil
setExceptionState(tc,0x0A);
Addr HandlerBase;
HandlerBase= vect() + tc->readMiscRegNoEffect(MipsISA::EBase); // Offset 0x180 - General Exception Vector
diff --git a/src/arch/mips/regfile/misc_regfile.hh b/src/arch/mips/regfile/misc_regfile.hh
index 633ea7efb..ab233abde 100644
--- a/src/arch/mips/regfile/misc_regfile.hh
+++ b/src/arch/mips/regfile/misc_regfile.hh
@@ -48,9 +48,6 @@ namespace MipsISA
{
class MiscRegFile {
public:
- // Give RegFile object, private access
- friend class RegFile;
-
// The MIPS name for this file is CP0 or Coprocessor 0
typedef MiscRegFile CP0;
diff --git a/src/arch/mips/regfile/regfile.hh b/src/arch/mips/regfile/regfile.hh
index 71775edc4..be67894bf 100644
--- a/src/arch/mips/regfile/regfile.hh
+++ b/src/arch/mips/regfile/regfile.hh
@@ -92,27 +92,6 @@ namespace MipsISA
//TotalArchRegs = NumIntArchRegs * ShadowSets
const int TotalArchRegs = NumIntArchRegs;
-
- class RegFile {
- public:
- void clear()
- {}
- void reset(std::string core_name, ThreadID num_threads,
- unsigned num_vpes, BaseCPU *_cpu)
- {}
-
- void setShadowSet(int css)
- {}
-
- public:
- void serialize(EventManager *em, std::ostream &os)
- {}
- void unserialize(EventManager *em, Checkpoint *cp,
- const std::string &section)
- {}
-
- };
-
} // namespace MipsISA
#endif
diff --git a/src/arch/sparc/isa_traits.hh b/src/arch/sparc/isa_traits.hh
index 00dadcf3d..407602f90 100644
--- a/src/arch/sparc/isa_traits.hh
+++ b/src/arch/sparc/isa_traits.hh
@@ -44,8 +44,6 @@ namespace BigEndianGuest {}
namespace SparcISA
{
- class RegFile;
-
const int MachineBytes = 8;
//This makes sure the big endian versions of certain functions are used.
diff --git a/src/arch/sparc/regfile.hh b/src/arch/sparc/regfile.hh
index b0c2aabbd..28885271f 100644
--- a/src/arch/sparc/regfile.hh
+++ b/src/arch/sparc/regfile.hh
@@ -47,20 +47,6 @@ namespace SparcISA
const int NumIntArchRegs = 32;
const int NumIntRegs = (MaxGL + 1) * 8 + NWindows * 16 + NumMicroIntRegs;
- class RegFile
- {
- public:
-
- void clear()
- {}
-
- void serialize(EventManager *em, std::ostream &os)
- {}
- void unserialize(EventManager *em, Checkpoint *cp,
- const std::string &section)
- {}
- };
-
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);
diff --git a/src/arch/x86/regfile.hh b/src/arch/x86/regfile.hh
index 6c0dc757e..fd9d6d546 100644
--- a/src/arch/x86/regfile.hh
+++ b/src/arch/x86/regfile.hh
@@ -84,19 +84,6 @@ namespace X86ISA
NumMMXRegs + 2 * NumXMMRegs + NumMicroFpRegs;
const int NumFloatArchRegs = NumFloatRegs + 8;
- class RegFile
- {
- public:
- void clear()
- {}
-
- void serialize(EventManager *em, std::ostream &os)
- {}
- void unserialize(EventManager *em, Checkpoint *cp,
- const std::string &section)
- {}
- };
-
void copyRegs(ThreadContext *src, ThreadContext *dest);
void copyMiscRegs(ThreadContext *src, ThreadContext *dest);