tlb.cc (8962:397cbf4b11a6) tlb.cc (9025:545591665fc7)
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

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

284 warn_once("Expand down segments are untested.\n");
285 if (offset <= limit || endOffset <= limit)
286 return new GeneralProtection(0);
287 } else {
288 if (offset > limit || endOffset > limit)
289 return new GeneralProtection(0);
290 }
291 }
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

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

284 warn_once("Expand down segments are untested.\n");
285 if (offset <= limit || endOffset <= limit)
286 return new GeneralProtection(0);
287 } else {
288 if (offset > limit || endOffset > limit)
289 return new GeneralProtection(0);
290 }
291 }
292 if (m5Reg.mode != LongMode ||
292 if (m5Reg.submode != SixtyFourBitMode ||
293 (flags & (AddrSizeFlagBit << FlagShift)))
294 vaddr &= mask(32);
295 // If paging is enabled, do the translation.
296 if (m5Reg.paging) {
297 DPRINTF(TLB, "Paging enabled.\n");
298 // The vaddr already has the segment base applied.
299 TlbEntry *entry = lookup(vaddr);
300 if (!entry) {

--- 154 unchanged lines hidden ---
293 (flags & (AddrSizeFlagBit << FlagShift)))
294 vaddr &= mask(32);
295 // If paging is enabled, do the translation.
296 if (m5Reg.paging) {
297 DPRINTF(TLB, "Paging enabled.\n");
298 // The vaddr already has the segment base applied.
299 TlbEntry *entry = lookup(vaddr);
300 if (!entry) {

--- 154 unchanged lines hidden ---