Deleted Added
sdiff udiff text old ( 8232:b28d06a175be ) new ( 8534:09745e0c3dd9 )
full compact
1/*
2 * Copyright (c) 2007-2008 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 604 unchanged lines hidden (view full) ---

613 DPRINTF(TLB, "Handling a TLB miss for "
614 "address %#x at pc %#x.\n",
615 vaddr, tc->instAddr());
616
617 Process *p = tc->getProcessPtr();
618 TlbEntry newEntry;
619 bool success = p->pTable->lookup(vaddr, newEntry);
620 if (!success && mode != Execute) {
621 p->checkAndAllocNextPage(vaddr);
622 success = p->pTable->lookup(vaddr, newEntry);
623 }
624 if (!success) {
625 return new PageFault(vaddr, true, mode, true, false);
626 } else {
627 Addr alignedVaddr = p->pTable->pageAlign(vaddr);
628 DPRINTF(TLB, "Mapping %#x to %#x\n", alignedVaddr,
629 newEntry.pageStart());
630 entry = insert(alignedVaddr, newEntry);

--- 124 unchanged lines hidden ---