tlb.cc (6428:9e35cdc95e81) | tlb.cc (6757:d86d3d6e5326) |
---|---|
1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * Copyright (c) 2007-2008 The Florida State University 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 273 unchanged lines hidden (view full) --- 282 Process * p = tc->getProcessPtr(); 283 284 Fault fault = p->pTable->translate(req); 285 if(fault != NoFault) 286 return fault; 287 288 return NoFault; 289#else | 1/* 2 * Copyright (c) 2001-2005 The Regents of The University of Michigan 3 * Copyright (c) 2007 MIPS Technologies, Inc. 4 * Copyright (c) 2007-2008 The Florida State University 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 273 unchanged lines hidden (view full) --- 282 Process * p = tc->getProcessPtr(); 283 284 Fault fault = p->pTable->translate(req); 285 if(fault != NoFault) 286 return fault; 287 288 return NoFault; 289#else |
290 fatal("translate atomic not yet implemented\n"); | 290 SCTLR sctlr = tc->readMiscReg(MISCREG_SCTLR); 291 if (!sctlr.m) { 292 req->setPaddr(req->getVaddr()); 293 return NoFault; 294 } 295 panic("MMU translation not implemented\n"); 296 return NoFault; 297 298 |
291#endif 292} 293 294void 295TLB::translateTiming(RequestPtr req, ThreadContext *tc, 296 Translation *translation, Mode mode) 297{ 298 assert(translation); --- 19 unchanged lines hidden --- | 299#endif 300} 301 302void 303TLB::translateTiming(RequestPtr req, ThreadContext *tc, 304 Translation *translation, Mode mode) 305{ 306 assert(translation); --- 19 unchanged lines hidden --- |