#ifndef __ARCH_ALPHA_INTREGFILE_HH__
#define __ARCH_ALPHA_INTREGFILE_HH__
-#include "arch/alpha/types.hh"
+#include <iosfwd>
+#include <string>
-#include <iostream>
-#include <strings.h>
+#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 §ion);
+ void serialize(std::ostream &os);
+ void unserialize(Checkpoint *cp, const std::string §ion);
+};
- void clear()
- { bzero(regs, sizeof(regs)); }
- };
-}
+} // namespace AlphaISA
-#endif
+#endif // __ARCH_ALPHA_INTREGFILE_HH__