summaryrefslogtreecommitdiff
path: root/src/arch/alpha/intregfile.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/alpha/intregfile.hh')
-rw-r--r--src/arch/alpha/intregfile.hh57
1 files changed, 26 insertions, 31 deletions
diff --git a/src/arch/alpha/intregfile.hh b/src/arch/alpha/intregfile.hh
index dea160992..3aa7d92c4 100644
--- a/src/arch/alpha/intregfile.hh
+++ b/src/arch/alpha/intregfile.hh
@@ -32,47 +32,42 @@
#ifndef __ARCH_ALPHA_INTREGFILE_HH__
#define __ARCH_ALPHA_INTREGFILE_HH__
-#include "arch/alpha/types.hh"
+#include <iosfwd>
+#include <string>
-#include <iostream>
-#include <cstring>
+#include "arch/alpha/types.hh"
class Checkpoint;
-namespace AlphaISA
+namespace AlphaISA {
+
+// redirected register map, really only used for the full system case.
+extern const int reg_redir[NumIntRegs];
+
+class IntRegFile
{
- static inline std::string getIntRegName(RegIndex)
+ protected:
+ IntReg regs[NumIntRegs];
+
+ public:
+ IntReg
+ readReg(int intReg)
{
- return "";
+ return regs[intReg];
}
- // redirected register map, really only used for the full system case.
- extern const int reg_redir[NumIntRegs];
-
- class IntRegFile
+ void
+ setReg(int intReg, const IntReg &val)
{
- protected:
- IntReg regs[NumIntRegs];
-
- public:
-
- IntReg readReg(int intReg)
- {
- return regs[intReg];
- }
-
- void setReg(int intReg, const IntReg &val)
- {
- regs[intReg] = val;
- }
+ regs[intReg] = val;
+ }
- void serialize(std::ostream &os);
+ void clear();
- void unserialize(Checkpoint *cp, const std::string &section);
+ void serialize(std::ostream &os);
+ void unserialize(Checkpoint *cp, const std::string &section);
+};
- void clear()
- { std::memset(regs, 0, sizeof(regs)); }
- };
-}
+} // namespace AlphaISA
-#endif
+#endif // __ARCH_ALPHA_INTREGFILE_HH__