SPARC: Get rid of flattenIndex in the int register file.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 25 Feb 2009 18:21:59 +0000 (10:21 -0800)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 25 Feb 2009 18:21:59 +0000 (10:21 -0800)
src/arch/sparc/intregfile.cc
src/arch/sparc/intregfile.hh

index 26637ddad3ca9da7aaab87a19eb3b6233d93bd23..c111172a93f0f8c0f944f3802a17ff553e4ff851 100644 (file)
@@ -51,14 +51,6 @@ string SparcISA::getIntRegName(RegIndex index)
     return intRegName[index];
 }
 
-int IntRegFile::flattenIndex(int reg)
-{
-    int flatIndex = offset[reg >> FrameOffsetBits]
-        | (reg & FrameOffsetMask);
-    DPRINTF(RegisterWindows, "Flattened index %d into %d.\n", reg, flatIndex);
-    return flatIndex;
-}
-
 void IntRegFile::clear()
 {
     int x;
index ce9bcadb6bf49e0bcee79c53939bbd26bde38535..9a086f08af654a42aba5d17a4d5580d83930bd32 100644 (file)
@@ -87,8 +87,6 @@ namespace SparcISA
 
       public:
 
-        int flattenIndex(int reg);
-
         void clear();
 
         IntRegFile();