mem: Merge the virtual Request constructors.
authorGabe Black <gabeblack@google.com>
Wed, 4 Mar 2020 09:50:53 +0000 (01:50 -0800)
committerGabe Black <gabeblack@google.com>
Sat, 7 Mar 2020 00:40:41 +0000 (00:40 +0000)
commit86d32c4969633a25a28a82bc1d414b0354cf95db
tree4e5f6072b4c4a2217966fad492f1418c62d6f5c9
parent935a0009b2e68bf176cde7b31ac059025fba3990
mem: Merge the virtual Request constructors.

The only difference was whether the the atomic op functor was accepted
as an argument. If it wasn't, setVirt would be called without an op
functor argument where it will default to nullptr.

This change deletes the constructor which doesn't take an atomic op
functor and in the other defaults the functor to nullptr. Functionally
nothing changes, but the code is now simpler.

Change-Id: Iff06543b1046594df297344e16961ee9d0f0a373
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26231
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/mem/request.hh