diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2012-07-11 12:21:04 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2012-07-11 12:21:04 -0700 |
commit | 8c18f6da9ecb38b571e88318a28ac4effbc97b5e (patch) | |
tree | f4a06b94216242a2017deb28b3ca1ce4acd132eb /src/arch | |
parent | 5931087dcd09ece4663a6eaac0c06de1a929078c (diff) | |
download | gem5-8c18f6da9ecb38b571e88318a28ac4effbc97b5e.tar.xz |
x86: added page size in bytes tlb entry function
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/x86/pagetable.hh | 6 |
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 §ion); }; |