mem: Replace EventWrapper in PacketQueue with EventFunctionWrapper
authorSean Wilson <spwilson2@wisc.edu>
Tue, 13 Jun 2017 17:26:25 +0000 (12:26 -0500)
committerSean Wilson <spwilson2@wisc.edu>
Tue, 20 Jun 2017 18:03:21 +0000 (18:03 +0000)
commitd0b477475135f7d216fcdfa5a2c22266234801bc
tree11b71b5cd3b7633a6e772f66f89c0ab93cc594db
parente34924b50fd3362dc51a67c51c6d7f2b2015cf30
mem: Replace EventWrapper in PacketQueue with EventFunctionWrapper

In order to replicate the same `name()` output with `PacketQueue`, subclasses
using EventFunctionWrapper must initialize PacketQueue with their own name so
the sendEvent holds the name of the subclass.

Change-Id: Ib091e118bab8858192e1d1370d61def42958ec29
Signed-off-by: Sean Wilson <spwilson2@wisc.edu>
Reviewed-on: https://gem5-review.googlesource.com/3744
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
src/mem/packet_queue.cc
src/mem/packet_queue.hh