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 --- 281 unchanged lines hidden (view full) --- 290 hits = read_hits + write_hits; 291 misses = read_misses + write_misses; 292 accesses = read_accesses + write_accesses; 293} 294 295Fault 296TLB::translateInst(RequestPtr req, ThreadContext *tc) 297{ |
298 if (FullSystem) 299 panic("translateInst not implemented in MIPS.\n"); |
300 |
301 Process * p = tc->getProcessPtr(); |
302 |
303 Fault fault = p->pTable->translate(req); 304 if (fault != NoFault) 305 return fault; 306 307 return NoFault; |
308} 309 310Fault 311TLB::translateData(RequestPtr req, ThreadContext *tc, bool write) 312{ |
313 if (FullSystem) 314 panic("translateData not implemented in MIPS.\n"); |
315 |
316 Process * p = tc->getProcessPtr(); |
317 |
318 Fault fault = p->pTable->translate(req); 319 if (fault != NoFault) 320 return fault; 321 322 return NoFault; |
323} 324 325Fault 326TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode) 327{ 328 if (mode == Execute) 329 return translateInst(req, tc); 330 else --- 28 unchanged lines hidden --- |