From: Brad Beckmann Date: Wed, 11 Jul 2012 19:21:04 +0000 (-0700) Subject: x86: added page size in bytes tlb entry function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8c18f6da9ecb38b571e88318a28ac4effbc97b5e;p=gem5.git x86: added page size in bytes tlb entry function --- 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); };