diff options
author | Ron Dreslinski <rdreslin@umich.edu> | 2006-04-07 18:16:11 -0400 |
---|---|---|
committer | Ron Dreslinski <rdreslin@umich.edu> | 2006-04-07 18:16:11 -0400 |
commit | ae1a95ed9c9aa2b3c97272570575345dc3c37799 (patch) | |
tree | 2d83df1ac20e0fdff565d545844dd7cfc283c774 /mem/page_table.cc | |
parent | 2609ed2a7cf736834cafcf0b07465c45dfb567e3 (diff) | |
parent | 9e3d79694ca9e204bcbfa9c197db17b581dc7a29 (diff) | |
download | gem5-ae1a95ed9c9aa2b3c97272570575345dc3c37799.tar.xz |
Merge zizzer:/z/m5/Bitkeeper/newmem
into zazzer.eecs.umich.edu:/z/rdreslin/m5bk/newmem
--HG--
extra : convert_revision : 85406b562373f7d768a44a8c327055cb02d3f6c5
Diffstat (limited to 'mem/page_table.cc')
-rw-r--r-- | mem/page_table.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mem/page_table.cc b/mem/page_table.cc index 714ddde35..c4e1ea193 100644 --- a/mem/page_table.cc +++ b/mem/page_table.cc @@ -121,11 +121,14 @@ PageTable::translate(Addr vaddr, Addr &paddr) Fault -PageTable::translate(CpuRequestPtr &req) +PageTable::translate(RequestPtr &req) { - assert(pageAlign(req->vaddr + req->size - 1) == pageAlign(req->vaddr)); - if (!translate(req->vaddr, req->paddr)) { + Addr paddr; + assert(pageAlign(req->getVaddr() + req->getSize() - 1) + == pageAlign(req->getVaddr())); + if (!translate(req->getVaddr(), paddr)) { return genMachineCheckFault(); } - return page_check(req->paddr, req->size); + req->setPaddr(paddr); + return page_check(req->getPaddr(), req->getSize()); } |