x86: added page size in bytes tlb entry function
authorBrad Beckmann <Brad.Beckmann@amd.com>
Wed, 11 Jul 2012 19:21:04 +0000 (12:21 -0700)
committerBrad Beckmann <Brad.Beckmann@amd.com>
Wed, 11 Jul 2012 19:21:04 +0000 (12:21 -0700)
src/arch/x86/pagetable.hh

index 8a6e71f3b44aea8ffb69828642c745f94cd21125..2a7ade85375921ce858f65c9cf8ae2138f849e98 100644 (file)
@@ -118,6 +118,12 @@ namespace X86ISA
             return paddr;
         }
 
+        // Return the page size in bytes
+        int size()
+        {
+            return (1 << logBytes);
+        }
+
         void serialize(std::ostream &os);
         void unserialize(Checkpoint *cp, const std::string &section);
     };