page_table.cc (3347:c182ee45f6b4) page_table.cc (4183:3d19c1d46946)
1/*
2 * Copyright (c) 2003 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 143 unchanged lines hidden (view full) ---

152
153Fault
154PageTable::translate(RequestPtr &req)
155{
156 Addr paddr;
157 assert(pageAlign(req->getVaddr() + req->getSize() - 1)
158 == pageAlign(req->getVaddr()));
159 if (!translate(req->getVaddr(), paddr)) {
1/*
2 * Copyright (c) 2003 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 143 unchanged lines hidden (view full) ---

152
153Fault
154PageTable::translate(RequestPtr &req)
155{
156 Addr paddr;
157 assert(pageAlign(req->getVaddr() + req->getSize() - 1)
158 == pageAlign(req->getVaddr()));
159 if (!translate(req->getVaddr(), paddr)) {
160 return genPageTableFault(req->getVaddr());
160 return Fault(new PageTableFault(req->getVaddr()));
161 }
162 req->setPaddr(paddr);
163 return page_check(req->getPaddr(), req->getSize());
164}
165
166void
167PageTable::serialize(std::ostream &os)
168{

--- 34 unchanged lines hidden ---
161 }
162 req->setPaddr(paddr);
163 return page_check(req->getPaddr(), req->getSize());
164}
165
166void
167PageTable::serialize(std::ostream &os)
168{

--- 34 unchanged lines hidden ---