tlb.cc (6023:47b4fcb10c11) | tlb.cc (6038:4c21637acedd) |
---|---|
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 --- 413 unchanged lines hidden (view full) --- 422 return checkCacheability(req); 423#endif 424} 425 426Fault 427TLB::translateData(RequestPtr req, ThreadContext *tc, bool write) 428{ 429#if !FULL_SYSTEM | 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 --- 413 unchanged lines hidden (view full) --- 422 return checkCacheability(req); 423#endif 424} 425 426Fault 427TLB::translateData(RequestPtr req, ThreadContext *tc, bool write) 428{ 429#if !FULL_SYSTEM |
430 //@TODO: This should actually use TLB instead of going directly 431 // to the page table in syscall mode. 432 /** 433 * Check for alignment faults 434 */ 435 if (req->getVaddr() & (req->getSize() - 1)) { 436 DPRINTF(TLB, "Alignment Fault on %#x, size = %d", req->getVaddr(), 437 req->getSize()); 438 return new AlignmentFault(); 439 } 440 441 |
|
430 Process * p = tc->getProcessPtr(); 431 432 Fault fault = p->pTable->translate(req); 433 if(fault != NoFault) 434 return fault; 435 436 return NoFault; 437#else --- 160 unchanged lines hidden --- | 442 Process * p = tc->getProcessPtr(); 443 444 Fault fault = p->pTable->translate(req); 445 if(fault != NoFault) 446 return fault; 447 448 return NoFault; 449#else --- 160 unchanged lines hidden --- |