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