tlb.cc (6025:044903442dcb) | tlb.cc (6185:9925b3e83e06) |
---|---|
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; --- 438 unchanged lines hidden (view full) --- 447 448 mode_type mode = 449 (mode_type)DTB_CM_CM(tc->readMiscRegNoEffect(IPR_DTB_CM)); 450 451 /** 452 * Check for alignment faults 453 */ 454 if (req->getVaddr() & (req->getSize() - 1)) { | 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; --- 438 unchanged lines hidden (view full) --- 447 448 mode_type mode = 449 (mode_type)DTB_CM_CM(tc->readMiscRegNoEffect(IPR_DTB_CM)); 450 451 /** 452 * Check for alignment faults 453 */ 454 if (req->getVaddr() & (req->getSize() - 1)) { |
455 DPRINTF(TLB, "Alignment Fault on %#x, size = %d", req->getVaddr(), | 455 DPRINTF(TLB, "Alignment Fault on %#x, size = %d\n", req->getVaddr(), |
456 req->getSize()); 457 uint64_t flags = write ? MM_STAT_WR_MASK : 0; 458 return new DtbAlignmentFault(req->getVaddr(), req->getFlags(), flags); 459 } 460 461 if (PcPAL(pc)) { 462 mode = (req->getFlags() & Request::ALTMODE) ? 463 (mode_type)ALT_MODE_AM( --- 143 unchanged lines hidden --- | 456 req->getSize()); 457 uint64_t flags = write ? MM_STAT_WR_MASK : 0; 458 return new DtbAlignmentFault(req->getVaddr(), req->getFlags(), flags); 459 } 460 461 if (PcPAL(pc)) { 462 mode = (req->getFlags() & Request::ALTMODE) ? 463 (mode_type)ALT_MODE_AM( --- 143 unchanged lines hidden --- |