page_table.cc (2665:a124942bacb8) | page_table.cc (2800:18a615ca6e19) |
---|---|
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; --- 116 unchanged lines hidden (view full) --- 125 126Fault 127PageTable::translate(RequestPtr &req) 128{ 129 Addr paddr; 130 assert(pageAlign(req->getVaddr() + req->getSize() - 1) 131 == pageAlign(req->getVaddr())); 132 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; --- 116 unchanged lines hidden (view full) --- 125 126Fault 127PageTable::translate(RequestPtr &req) 128{ 129 Addr paddr; 130 assert(pageAlign(req->getVaddr() + req->getSize() - 1) 131 == pageAlign(req->getVaddr())); 132 if (!translate(req->getVaddr(), paddr)) { |
133 return genMachineCheckFault(); | 133 return genPageTableFault(req->getVaddr()); |
134 } 135 req->setPaddr(paddr); 136 return page_check(req->getPaddr(), req->getSize()); 137} | 134 } 135 req->setPaddr(paddr); 136 return page_check(req->getPaddr(), req->getSize()); 137} |