Hi Aritra, As you might have already noticed that there is a ptr to the data being transferred (PacketDataPtr data) in the packet class:
http://doxygen.gem5.org/release/current/classPacket.html I think you should be able to use methods like setData(), writeData() from the same class to copy data from one packet to the other using a ptr to that data. -Ayaz On Fri, Apr 9, 2021 at 12:42 PM bagchi95aritra--- via gem5-users < [email protected]> wrote: > Hi all, > > In gem5, the data a packet brings from the main memory to the cache is > first written into a particular cache block. Later, that cache block > supplies the data to the outstanding misses at the MSHR (targets). gem5 has > some built-in methods defined under the “Packet” class for transferring > data between a cache block and a packet. > > Is there any way/method in gem5 by which the data of a packet can directly > be written/copied to another packet? Can anyone put some light on it? > > Thanks and regards, > Aritra > _______________________________________________ > gem5-users mailing list -- [email protected] > To unsubscribe send an email to [email protected] > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________ gem5-users mailing list -- [email protected] To unsubscribe send an email to [email protected] %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
