Deleted Added
sdiff udiff text old ( 6757:d86d3d6e5326 ) new ( 7093:9832d4b070fc )
full compact
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
9 * met: redistributions of source code must retain the above copyright

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

273 hits = read_hits + write_hits;
274 misses = read_misses + write_misses;
275 accesses = read_accesses + write_accesses;
276}
277
278Fault
279TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode)
280{
281#if !FULL_SYSTEM
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 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
299#endif
300}

--- 25 unchanged lines hidden ---