1/* 2 * Copyright (c) 2001-2005 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; --- 278 unchanged lines hidden (view full) --- 287 288 accesses = hits + misses; 289 } 290 291 292 Fault 293 ITB::translate(RequestPtr &req, ThreadContext *tc) const 294 { |
295 if (PcPAL(req->getPC())) { |
296 // strip off PAL PC marker (lsb is 1) 297 req->setPaddr((req->getVaddr() & ~3) & PAddrImplMask); 298 hits++; 299 return NoFault; 300 } 301 302 if (req->getFlags() & PHYSICAL) { 303 req->setPaddr(req->getVaddr()); --- 333 unchanged lines hidden --- |