translation.hh (10020:2f33cb012383) | translation.hh (10177:402b0e25c41b) |
---|---|
1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 241 unchanged lines hidden (view full) --- 250 */ 251 void 252 finish(Fault fault, RequestPtr req, ThreadContext *tc, 253 BaseTLB::Mode mode) 254 { 255 assert(state); 256 assert(mode == state->mode); 257 if (state->finish(fault, index)) { | 1/* 2 * Copyright (c) 2011 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 241 unchanged lines hidden (view full) --- 250 */ 251 void 252 finish(Fault fault, RequestPtr req, ThreadContext *tc, 253 BaseTLB::Mode mode) 254 { 255 assert(state); 256 assert(mode == state->mode); 257 if (state->finish(fault, index)) { |
258 if (state->getFault() == NoFault) { 259 // Don't access the request if faulted (due to squash) 260 req->setTranslateLatency(); 261 } |
|
258 xc->finishTranslation(state); | 262 xc->finishTranslation(state); |
259 req->setTranslateLatency(); | |
260 } 261 delete this; 262 } 263 264 bool 265 squashed() const 266 { 267 return xc->isSquashed(); 268 } 269}; 270 271#endif // __CPU_TRANSLATION_HH__ | 263 } 264 delete this; 265 } 266 267 bool 268 squashed() const 269 { 270 return xc->isSquashed(); 271 } 272}; 273 274#endif // __CPU_TRANSLATION_HH__ |