mem: Use Packet writing functions instead of memcpy
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Mon, 15 Oct 2018 09:48:32 +0000 (11:48 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Mon, 5 Nov 2018 13:35:23 +0000 (13:35 +0000)
commitadde4c91f99fa99abbdd23cf97c45de020429d2d
treedcc5f09c9c708cd1c3cb0e8295bab2ec4d67ec97
parent49798e0eface6ad81f6227ea54980268656819c0
mem: Use Packet writing functions instead of memcpy

Classes were using memcpy instead of the Packet functions
created for writing to/from the packet. This allows these
writes to be better checked and tracked.

This also fixes a bug in MemCheckerMonitor, which was using
the incorrect type for the packet pointer.

Change-Id: I5bbc8a24e59464e8219bb6d54af8209e6d4ee1af
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/13695
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/abstract_mem.cc
src/mem/cache/base.cc
src/mem/mem_checker_monitor.cc