tlb.cc (8232:b28d06a175be) | tlb.cc (8408:0cce97fe6390) |
---|---|
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; --- 443 unchanged lines hidden (view full) --- 452 */ 453 if (req->getVaddr() & (req->getSize() - 1)) { 454 DPRINTF(TLB, "Alignment Fault on %#x, size = %d\n", req->getVaddr(), 455 req->getSize()); 456 uint64_t flags = write ? MM_STAT_WR_MASK : 0; 457 return new DtbAlignmentFault(req->getVaddr(), req->getFlags(), flags); 458 } 459 | 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; --- 443 unchanged lines hidden (view full) --- 452 */ 453 if (req->getVaddr() & (req->getSize() - 1)) { 454 DPRINTF(TLB, "Alignment Fault on %#x, size = %d\n", req->getVaddr(), 455 req->getSize()); 456 uint64_t flags = write ? MM_STAT_WR_MASK : 0; 457 return new DtbAlignmentFault(req->getVaddr(), req->getFlags(), flags); 458 } 459 |
460 if (PcPAL(tc->pcState().pc())) { | 460 if (PcPAL(req->getPC())) { |
461 mode = (req->getFlags() & Request::ALTMODE) ? 462 (mode_type)ALT_MODE_AM( 463 tc->readMiscRegNoEffect(IPR_ALT_MODE)) 464 : mode_kernel; 465 } 466 467 if (req->getFlags() & Request::PHYSICAL) { 468 req->setPaddr(req->getVaddr()); --- 137 unchanged lines hidden --- | 461 mode = (req->getFlags() & Request::ALTMODE) ? 462 (mode_type)ALT_MODE_AM( 463 tc->readMiscRegNoEffect(IPR_ALT_MODE)) 464 : mode_kernel; 465 } 466 467 if (req->getFlags() & Request::PHYSICAL) { 468 req->setPaddr(req->getVaddr()); --- 137 unchanged lines hidden --- |