projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5931087
)
x86: added page size in bytes tlb entry function
author
Brad Beckmann
<Brad.Beckmann@amd.com>
Wed, 11 Jul 2012 19:21:04 +0000
(12:21 -0700)
committer
Brad Beckmann
<Brad.Beckmann@amd.com>
Wed, 11 Jul 2012 19:21:04 +0000
(12:21 -0700)
src/arch/x86/pagetable.hh
patch
|
blob
|
history
diff --git
a/src/arch/x86/pagetable.hh
b/src/arch/x86/pagetable.hh
index 8a6e71f3b44aea8ffb69828642c745f94cd21125..2a7ade85375921ce858f65c9cf8ae2138f849e98 100644
(file)
--- 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);
};