From 8c18f6da9ecb38b571e88318a28ac4effbc97b5e Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Wed, 11 Jul 2012 12:21:04 -0700 Subject: [PATCH] x86: added page size in bytes tlb entry function --- src/arch/x86/pagetable.hh | 6 ++++++ 1 file changed, 6 insertions(+) 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); }; -- 2.30.2