mem-cache: Use Packet functions to write data blocks
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 4 Apr 2018 09:40:32 +0000 (11:40 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 5 Apr 2018 09:50:05 +0000 (09:50 +0000)
commit50cc923f8cd708ae55042977085ecef4e6a261e5
tree07156ef105146c9e3aa50bafb303070ff1f447f8
parentf97f8a2804b528b110644303e3317c2bcc09889b
mem-cache: Use Packet functions to write data blocks

Instead of using raw memcpy, use the proper writer functions
from the Packet class in Cache.

Fixed typos in comments of these functions.

Change-Id: I156a00989c6cbaa73763349006a37a18243d6ed4
Reviewed-on: https://gem5-review.googlesource.com/9661
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/cache/cache.cc
src/mem/packet.hh