packet.hh (4629:6c153fdd70bc) | packet.hh (4660:8ba283606f48) |
---|---|
1/* 2 * Copyright (c) 2006 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; --- 370 unchanged lines hidden (view full) --- 379 * *except* set data allocation as static... even if the original 380 * packet's data was dynamic, we don't want to free it when the 381 * new packet is deallocated. Note that if original packet used 382 * dynamic data, user must guarantee that the new packet's 383 * lifetime is less than that of the original packet. */ 384 Packet(Packet *origPkt) 385 : data(NULL), staticData(false), dynamicData(false), arrayData(false), 386 addr(origPkt->addr), size(origPkt->size), | 1/* 2 * Copyright (c) 2006 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; --- 370 unchanged lines hidden (view full) --- 379 * *except* set data allocation as static... even if the original 380 * packet's data was dynamic, we don't want to free it when the 381 * new packet is deallocated. Note that if original packet used 382 * dynamic data, user must guarantee that the new packet's 383 * lifetime is less than that of the original packet. */ 384 Packet(Packet *origPkt) 385 : data(NULL), staticData(false), dynamicData(false), arrayData(false), 386 addr(origPkt->addr), size(origPkt->size), |
387 dest(origPkt->dest), | 387 src(origPkt->src), dest(origPkt->dest), |
388 addrSizeValid(origPkt->addrSizeValid), srcValid(origPkt->srcValid), 389 snoopFlags(origPkt->snoopFlags), 390 time(curTick), 391 req(origPkt->req), coherence(origPkt->coherence), 392 senderState(origPkt->senderState), cmd(origPkt->cmd), 393 result(origPkt->result) 394 { 395 } --- 39 unchanged lines hidden (view full) --- 435 436 /** 437 * Perform the additional work required for timing responses above 438 * and beyond atomic responses; i.e., change the destination to 439 * point back to the requester and clear the source field. 440 */ 441 void convertAtomicToTimingResponse() 442 { | 388 addrSizeValid(origPkt->addrSizeValid), srcValid(origPkt->srcValid), 389 snoopFlags(origPkt->snoopFlags), 390 time(curTick), 391 req(origPkt->req), coherence(origPkt->coherence), 392 senderState(origPkt->senderState), cmd(origPkt->cmd), 393 result(origPkt->result) 394 { 395 } --- 39 unchanged lines hidden (view full) --- 435 436 /** 437 * Perform the additional work required for timing responses above 438 * and beyond atomic responses; i.e., change the destination to 439 * point back to the requester and clear the source field. 440 */ 441 void convertAtomicToTimingResponse() 442 { |
443 dest = src; | 443 dest = getSrc(); |
444 srcValid = false; 445 } 446 447 /** 448 * Take a request packet and modify it in place to be suitable for 449 * returning as a response to a timing request. 450 */ 451 void makeTimingResponse() --- 163 unchanged lines hidden --- | 444 srcValid = false; 445 } 446 447 /** 448 * Take a request packet and modify it in place to be suitable for 449 * returning as a response to a timing request. 450 */ 451 void makeTimingResponse() --- 163 unchanged lines hidden --- |