1/* 2 * Copyright (c) 2010 ARM Limited 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 --- 404 unchanged lines hidden (view full) --- 413 assert(flags & MustBeOne); 414 if (sctlr.a || !(flags & AllowUnaligned)) { 415 if (vaddr & flags & AlignmentMask) { 416 return new DataAbort(vaddr, 0, is_write, ArmFault::AlignmentFault); 417 } 418 } 419 } 420 |
421 Addr paddr; 422 Process *p = tc->getProcessPtr(); |
423 |
424 if (!p->pTable->translate(vaddr, paddr)) 425 return Fault(new GenericPageTableFault(vaddr)); 426 req->setPaddr(paddr); |
427 428 return NoFault; 429} 430 431Fault 432TLB::trickBoxCheck(RequestPtr req, Mode mode, uint8_t domain, bool sNp) 433{ 434 return NoFault; --- 128 unchanged lines hidden (view full) --- 563 req->setFlags(Request::UNCACHEABLE); 564 565 // Prevent prefetching from I/O devices. 566 if (req->isPrefetch()) { 567 return new PrefetchAbort(vaddr, ArmFault::PrefetchUncacheable); 568 } 569 } 570 |
571 if (!bootUncacheability && 572 ((ArmSystem*)tc->getSystemPtr())->adderBootUncacheable(vaddr)) 573 req->setFlags(Request::UNCACHEABLE); |
574 575 switch ( (dacr >> (te->domain * 2)) & 0x3) { 576 case 0: 577 domainFaults++; 578 DPRINTF(TLB, "TLB Fault: Data abort on domain. DACR: %#x domain: %#x" 579 " write:%d sNp:%d\n", dacr, te->domain, is_write, te->sNp); 580 if (is_fetch) 581 return new PrefetchAbort(vaddr, --- 140 unchanged lines hidden --- |