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 --- 525 unchanged lines hidden (view full) --- 534Fault 535TLB::translate(RequestPtr req, ThreadContext *tc, Translation *translation, 536 Mode mode, bool &delayedResponse, bool timing) 537{ 538 uint32_t flags = req->getFlags(); 539 int seg = flags & SegmentFlagMask; 540 bool storeCheck = flags & (StoreCheck << FlagShift); 541 |
542 delayedResponse = false; 543 |
544 // If this is true, we're dealing with a request to a non-memory address 545 // space. 546 if (seg == SEGMENT_REG_MS) { 547 return translateInt(req, tc); 548 } 549 |
550 Addr vaddr = req->getVaddr(); 551 DPRINTF(TLB, "Translating vaddr %#x.\n", vaddr); 552 553 HandyM5Reg m5Reg = tc->readMiscRegNoEffect(MISCREG_M5_REG); 554 555 // If protected mode has been enabled... 556 if (m5Reg.prot) { 557 DPRINTF(TLB, "In protected mode.\n"); --- 212 unchanged lines hidden --- |