tlb.cc (4172:141705d83494) tlb.cc (4375:b89532cd1b7d)
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
292Fault
293ITB::translate(RequestPtr &req, ThreadContext *tc) const
294{
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
292Fault
293ITB::translate(RequestPtr &req, ThreadContext *tc) const
294{
295 //If this is a pal pc, then set PHYSICAL
296 if(FULL_SYSTEM && PcPAL(req->getPC()))
297 req->setFlags(req->getFlags() | PHYSICAL);
298
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) {

--- 337 unchanged lines hidden ---
299 if (PcPAL(req->getPC())) {
300 // strip off PAL PC marker (lsb is 1)
301 req->setPaddr((req->getVaddr() & ~3) & PAddrImplMask);
302 hits++;
303 return NoFault;
304 }
305
306 if (req->getFlags() & PHYSICAL) {

--- 337 unchanged lines hidden ---