summaryrefslogtreecommitdiff
path: root/src/mem/page_table.cc
diff options
context:
space:
mode:
authorAlexandru Dutu <alexandru.dutu@amd.com>2014-11-23 18:01:09 -0800
committerAlexandru Dutu <alexandru.dutu@amd.com>2014-11-23 18:01:09 -0800
commite4859fae5b5edc6df51f42e2b1859d6c8f7c15f6 (patch)
tree1b2c394f449cab364dbff1fcc19746a876195acd /src/mem/page_table.cc
parenta19cf6943b58d9d76dd7256705394e002500a464 (diff)
downloadgem5-e4859fae5b5edc6df51f42e2b1859d6c8f7c15f6.tar.xz
mem: Page Table long lines
Trimmed down all the lines greater than 78 characters.
Diffstat (limited to 'src/mem/page_table.cc')
-rw-r--r--src/mem/page_table.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mem/page_table.cc b/src/mem/page_table.cc
index 8770abf98..fdea1fbad 100644
--- a/src/mem/page_table.cc
+++ b/src/mem/page_table.cc
@@ -51,7 +51,8 @@
using namespace std;
using namespace TheISA;
-FuncPageTable::FuncPageTable(const std::string &__name, uint64_t _pid, Addr _pageSize)
+FuncPageTable::FuncPageTable(const std::string &__name,
+ uint64_t _pid, Addr _pageSize)
: PageTableBase(__name, _pid, _pageSize)
{
}
@@ -71,7 +72,7 @@ FuncPageTable::map(Addr vaddr, Addr paddr, int64_t size, bool clobber)
for (; size > 0; size -= pageSize, vaddr += pageSize, paddr += pageSize) {
if (!clobber && (pTable.find(vaddr) != pTable.end())) {
// already mapped
- fatal("FuncPageTable::allocate: address 0x%x already mapped", vaddr);
+ fatal("FuncPageTable::allocate: addr 0x%x already mapped", vaddr);
}
pTable[vaddr] = TheISA::TlbEntry(pid, vaddr, paddr);
@@ -89,7 +90,9 @@ FuncPageTable::remap(Addr vaddr, int64_t size, Addr new_vaddr)
DPRINTF(MMU, "moving pages from vaddr %08p to %08p, size = %d\n", vaddr,
new_vaddr, size);
- for (; size > 0; size -= pageSize, vaddr += pageSize, new_vaddr += pageSize) {
+ for (; size > 0;
+ size -= pageSize, vaddr += pageSize, new_vaddr += pageSize)
+ {
assert(pTable.find(vaddr) != pTable.end());
pTable[new_vaddr] = pTable[vaddr];