1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 437 unchanged lines hidden (view full) --- 446 EvenOdd = 1; 447 } 448 449 if (Valid == false) { 450 return new InvalidFault(Asid, vaddr, VPN, true); 451 } else { 452 // Ok, this is really a match, set paddr 453 if (!Dirty) { |
454 return new TlbModifiedFault(Asid, vaddr, VPN); |
455 } 456 Addr PAddr; 457 if (EvenOdd == 0) { 458 PAddr = pte->PFN0; 459 } else { 460 PAddr = pte->PFN1; 461 } 462 PAddr >>= (pte->AddrShiftAmount - 12); --- 47 unchanged lines hidden --- |