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.
Reviewed-by: Nikos Nikoleris <firstname.lastname@example.org>
Reviewed-by: Daniel Carvalho <email@example.com>
Maintainer: Gabe Black <firstname.lastname@example.org>
2 files changed