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 --- 267 unchanged lines hidden (view full) --- 276 warn_once("Expand down segments are untested.\n"); 277 if (offset <= limit || endOffset <= limit) 278 return new GeneralProtection(0); 279 } else { 280 if (offset > limit || endOffset > limit) 281 return new GeneralProtection(0); 282 } 283 } |
284 if (m5Reg.mode != LongMode || 285 (flags & (AddrSizeFlagBit << FlagShift))) 286 vaddr &= mask(32); |
287 // If paging is enabled, do the translation. 288 if (m5Reg.paging) { 289 DPRINTF(TLB, "Paging enabled.\n"); 290 // The vaddr already has the segment base applied. 291 TlbEntry *entry = lookup(vaddr); 292 if (!entry) { 293 if (FullSystem) { 294 Fault fault = walker->start(tc, translation, req, mode); --- 152 unchanged lines hidden --- |