summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2012-07-11 12:21:04 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2012-07-11 12:21:04 -0700
commit8c18f6da9ecb38b571e88318a28ac4effbc97b5e (patch)
treef4a06b94216242a2017deb28b3ca1ce4acd132eb /src/arch
parent5931087dcd09ece4663a6eaac0c06de1a929078c (diff)
downloadgem5-8c18f6da9ecb38b571e88318a28ac4effbc97b5e.tar.xz
x86: added page size in bytes tlb entry function
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/pagetable.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/x86/pagetable.hh b/src/arch/x86/pagetable.hh
index 8a6e71f3b..2a7ade853 100644
--- a/src/arch/x86/pagetable.hh
+++ b/src/arch/x86/pagetable.hh
@@ -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);
};