move hver code to ua2005.cc
authorAli Saidi <saidi@eecs.umich.edu>
Mon, 12 Mar 2007 17:56:09 +0000 (13:56 -0400)
committerAli Saidi <saidi@eecs.umich.edu>
Mon, 12 Mar 2007 17:56:09 +0000 (13:56 -0400)
src/arch/sparc/miscregfile.cc:
    this code should be in readFSreg
src/arch/sparc/ua2005.cc:
    move code froh miscregfile to ua2005.cc

--HG--
extra : convert_revision : fa450b04ad73ab6f6e25d66fa0368054263f09f9

src/arch/sparc/miscregfile.cc
src/arch/sparc/ua2005.cc

index 20bc4ae5dddcb4d64e58c7bf747229e4f162c50e..f3be1c4c2a15cb67243feb2dc267f255ba24ffd9 100644 (file)
@@ -231,14 +231,6 @@ MiscReg MiscRegFile::readRegNoEffect(int miscReg)
         return hintp;
       case MISCREG_HTBA:
         return htba;
-      case MISCREG_HVER:
-        // XXX set to match Legion
-        return ULL(0x3e) << 48 |
-               ULL(0x23) << 32 |
-               ULL(0x20) << 24 |
-                   //MaxGL << 16 | XXX For some reason legion doesn't set GL
-                   MaxTL << 8  |
-           (NWindows -1) << 0;
       case MISCREG_STRAND_STS_REG:
         return strandStatusReg;
       case MISCREG_HSTICK_CMPR:
index 439f384579540cf3d8c8ba126af8a404959eabfc..86528003869530683732d61c9bb90b097735155d 100644 (file)
@@ -235,7 +235,13 @@ MiscRegFile::readFSReg(int miscReg, ThreadContext * tc)
       case MISCREG_HTBA:
         return readRegNoEffect(miscReg) & ULL(~0x7FFF);
       case MISCREG_HVER:
-        return NWindows | MaxTL << 8 | MaxGL << 16;
+        // XXX set to match Legion
+        return ULL(0x3e) << 48 |
+               ULL(0x23) << 32 |
+               ULL(0x20) << 24 |
+                   //MaxGL << 16 | XXX For some reason legion doesn't set GL
+                   MaxTL << 8  |
+           (NWindows -1) << 0;
 
       case MISCREG_STRAND_STS_REG:
         System *sys;