SPARC: Fix a stupid mistake which was breaking the SPARC regressions.
authorGabe Black <gblack@eecs.umich.edu>
Wed, 26 Sep 2007 03:00:46 +0000 (20:00 -0700)
committerGabe Black <gblack@eecs.umich.edu>
Wed, 26 Sep 2007 03:00:46 +0000 (20:00 -0700)
--HG--
extra : convert_revision : 34a11df0d467ea249211dd3aba86bc8d2aea45de

src/cpu/simple_thread.hh

index c018e3e49184b12760ba575bc7f309b011816a59..2b79c97081c5b2d1d5c6f6234a2373eae51cf087 100644 (file)
@@ -241,25 +241,25 @@ class SimpleThread : public ThreadState
 
     FloatReg readFloatReg(int reg_idx, int width)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         return regs.readFloatReg(flatIndex, width);
     }
 
     FloatReg readFloatReg(int reg_idx)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         return regs.readFloatReg(flatIndex);
     }
 
     FloatRegBits readFloatRegBits(int reg_idx, int width)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         return regs.readFloatRegBits(flatIndex, width);
     }
 
     FloatRegBits readFloatRegBits(int reg_idx)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         return regs.readFloatRegBits(flatIndex);
     }
 
@@ -271,25 +271,25 @@ class SimpleThread : public ThreadState
 
     void setFloatReg(int reg_idx, FloatReg val, int width)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         regs.setFloatReg(flatIndex, val, width);
     }
 
     void setFloatReg(int reg_idx, FloatReg val)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         regs.setFloatReg(flatIndex, val);
     }
 
     void setFloatRegBits(int reg_idx, FloatRegBits val, int width)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         regs.setFloatRegBits(flatIndex, val, width);
     }
 
     void setFloatRegBits(int reg_idx, FloatRegBits val)
     {
-        int flatIndex = TheISA::flattenIntIndex(getTC(), reg_idx);
+        int flatIndex = TheISA::flattenFloatIndex(getTC(), reg_idx);
         regs.setFloatRegBits(flatIndex, val);
     }