X86: Compute PCI config addresses correctly.
[gem5.git] / src / arch / alpha / intregfile.hh
index 0d65f69e0d925b344c9eaeee74b4fe52f625c71a..f6ba72e798bf716ecff04f281e20769bd97d8b3f 100644 (file)
 #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 &section);
+    void serialize(std::ostream &os);
+    void unserialize(Checkpoint *cp, const std::string &section);
+};
 
-        void clear()
-        { bzero(regs, sizeof(regs)); }
-    };
-}
+} // namespace AlphaISA
 
-#endif
+#endif // __ARCH_ALPHA_INTREGFILE_HH__