changeset 4d27997b548c in /z/repo/m5
details: http://repo.m5sim.org/m5?cmd=changeset;node=4d27997b548c
description:
        mips-shadowsets: fix calcuations. \n  Remove Shadowsets from Int & 
Arch. Reg Calculations

diffstat:

2 files changed, 7 insertions(+), 4 deletions(-)
src/arch/mips/isa_traits.hh          |    6 ++----
src/arch/mips/regfile/int_regfile.hh |    5 +++++

diffs (33 lines):

diff -r fc2e234b4404 -r 4d27997b548c src/arch/mips/isa_traits.hh
--- a/src/arch/mips/isa_traits.hh       Fri Apr 17 16:54:58 2009 -0700
+++ b/src/arch/mips/isa_traits.hh       Sat Apr 18 10:42:28 2009 -0400
@@ -177,12 +177,10 @@
     const int NumFloatArchRegs = 32;
     const int NumFloatSpecialRegs = 5;
 
-    const int NumShadowRegSets = 16; // Maximum number of shadow register sets
-    const int NumIntRegs = NumIntArchRegs*NumShadowRegSets + 
NumIntSpecialRegs;        //HI & LO Regs
+    const int MaxShadowRegSets = 16; // Maximum number of shadow register sets
+    const int NumIntRegs = NumIntArchRegs + NumIntSpecialRegs;        //HI & 
LO Regs
     const int NumFloatRegs = NumFloatArchRegs + NumFloatSpecialRegs;//
 
-    const int TotalArchRegs = NumIntArchRegs * NumShadowRegSets;
-
     // Static instruction parameters
     const int MaxInstSrcRegs = 10;
     const int MaxInstDestRegs = 8;
diff -r fc2e234b4404 -r 4d27997b548c src/arch/mips/regfile/int_regfile.hh
--- a/src/arch/mips/regfile/int_regfile.hh      Fri Apr 17 16:54:58 2009 -0700
+++ b/src/arch/mips/regfile/int_regfile.hh      Sat Apr 18 10:42:28 2009 -0400
@@ -60,6 +60,11 @@
        DSPHi0 = HI
     };
 
+    //@TODO: Implementing ShadowSets needs to
+    //edit this value such that:
+    //TotalArchRegs = NumIntArchRegs * ShadowSets
+    const int TotalArchRegs = NumIntArchRegs;
+
     class IntRegFile
     {
       protected:
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to