tlb.cc (8795:0909f8ed7aa0) | tlb.cc (8806:669e93d79ed9) |
---|---|
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 * Copyright (c) 2009 The University of Edinburgh 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 295 unchanged lines hidden (view full) --- 304 return fault; 305 306 return NoFault; 307} 308 309Fault 310TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode) 311{ | 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 * Copyright (c) 2009 The University of Edinburgh 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 295 unchanged lines hidden (view full) --- 304 return fault; 305 306 return NoFault; 307} 308 309Fault 310TLB::translateAtomic(RequestPtr req, ThreadContext *tc, Mode mode) 311{ |
312 if (FullSystem) { | 312 if (FullSystem) |
313 fatal("translate atomic not yet implemented in full system mode.\n"); | 313 fatal("translate atomic not yet implemented in full system mode.\n"); |
314 } else { 315 if (mode == Execute) 316 return translateInst(req, tc); 317 else 318 return translateData(req, tc, mode == Write); 319 } | 314 315 if (mode == Execute) 316 return translateInst(req, tc); 317 else 318 return translateData(req, tc, mode == Write); |
320} 321 322void 323TLB::translateTiming(RequestPtr req, ThreadContext *tc, 324 Translation *translation, Mode mode) 325{ 326 assert(translation); 327 translation->finish(translateAtomic(req, tc, mode), req, tc, mode); --- 18 unchanged lines hidden --- | 319} 320 321void 322TLB::translateTiming(RequestPtr req, ThreadContext *tc, 323 Translation *translation, Mode mode) 324{ 325 assert(translation); 326 translation->finish(translateAtomic(req, tc, mode), req, tc, mode); --- 18 unchanged lines hidden --- |