mem: Add sendAtomicBackdoor/recvAtomicBackdoor port methods.
authorGabe Black <gabeblack@google.com>
Fri, 22 Mar 2019 00:23:03 +0000 (17:23 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 10 Apr 2019 10:37:27 +0000 (10:37 +0000)
commit64f415f9bf5bb70376859055ec2d96fbb8c998ce
treecaa8de425655fa20f717d6a796a31da3d98704ca
parenta8d5dd1c136529e9605066368877d3b8e24dcdba
mem: Add sendAtomicBackdoor/recvAtomicBackdoor port methods.

These both perform atomic accesses like their non-backdoor equivalents,
and also request a backdoor corresponding to the access.

The default implementation for recvAtomicBackdoor prints a warning
(once per port instance), calls recvAtomic to do the actual access,
and leaves the backdoor pointer as nullptr. That way if an object
doesn't know how to handle or transfer requests for a back door, it
automatically replies in a safe way that ignores the back door request.

Change-Id: Ia9fbbe9996eb4b71ea62214d203aa039a05f1618
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17590
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Maintainer: Gabe Black <gabeblack@google.com>
src/mem/port.cc
src/mem/port.hh