summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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);
};