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.hh63
1 files changed, 32 insertions, 31 deletions
diff --git a/src/arch/alpha/intregfile.hh b/src/arch/alpha/intregfile.hh
index dea160992..f6ba72e79 100644
--- a/src/arch/alpha/intregfile.hh
+++ b/src/arch/alpha/intregfile.hh
@@ -32,47 +32,48 @@
#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
-{
- static inline std::string getIntRegName(RegIndex)
- {
- return "";
- }
+namespace AlphaISA {
- // redirected register map, really only used for the full system case.
- extern const int reg_redir[NumIntRegs];
+static inline std::string
+getIntRegName(RegIndex)
+{
+ return "";
+}
- class IntRegFile
- {
- protected:
- IntReg regs[NumIntRegs];
+// redirected register map, really only used for the full system case.
+extern const int reg_redir[NumIntRegs];
- public:
+class IntRegFile
+{
+ protected:
+ IntReg regs[NumIntRegs];
- IntReg readReg(int intReg)
- {
- return regs[intReg];
- }
+ public:
+ IntReg
+ readReg(int intReg)
+ {
+ return regs[intReg];
+ }
- void setReg(int intReg, const IntReg &val)
- {
- regs[intReg] = val;
- }
+ void
+ setReg(int intReg, const 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__