Deleted Added
sdiff udiff text old ( 6658:f4de76601762 ) new ( 6739:48d10ba361c9 )
full compact
1/*
2 * Copyright (c) 2002-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

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

268}
269
270void
271TimingSimpleCPU::sendData(Fault fault, RequestPtr req,
272 uint8_t *data, uint64_t *res, bool read)
273{
274 _status = Running;
275 if (fault != NoFault) {
276 delete data;
277 delete req;
278
279 translationFault(fault);
280 return;
281 }
282 PacketPtr pkt;
283 buildPacket(pkt, req, read);

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

310
311void
312TimingSimpleCPU::sendSplitData(Fault fault1, Fault fault2,
313 RequestPtr req1, RequestPtr req2, RequestPtr req,
314 uint8_t *data, bool read)
315{
316 _status = Running;
317 if (fault1 != NoFault || fault2 != NoFault) {
318 delete data;
319 delete req1;
320 delete req2;
321 if (fault1 != NoFault)
322 translationFault(fault1);
323 else if (fault2 != NoFault)
324 translationFault(fault2);
325 return;

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

355 }
356 }
357 }
358}
359
360void
361TimingSimpleCPU::translationFault(Fault fault)
362{
363 numCycles += tickToCycles(curTick - previousTick);
364 previousTick = curTick;
365
366 if (traceData) {
367 // Since there was a fault, we shouldn't trace this instruction.
368 delete traceData;
369 traceData = NULL;
370 }

--- 695 unchanged lines hidden ---