dev: Teach the DmaPort to use atomic memory backdoors.
authorGabe Black <gabe.black@gmail.com>
Thu, 24 Dec 2020 14:06:17 +0000 (06:06 -0800)
committerGabe Black <gabe.black@gmail.com>
Wed, 13 Jan 2021 01:29:10 +0000 (01:29 +0000)
commitc5da197679e892e08bbf1072f1bed696a952fdc9
treebd97521e4e4b4750473d2e1bfc9b534c275c1d1a
parent93c0fdfb1232cb32ba6b77d0f90be0bff5b63119
dev: Teach the DmaPort to use atomic memory backdoors.

This is implemented similary to the NonCachingSimpleCPU, except that
both the normal atomic and noncaching atomic behaviors are implemented
by the same class. The sendDma function now dispatches to a method which
implements one or the other behavior since that function was getting too
big and complex.

Change-Id: I7972971ef41d1373424e587cf67c8444d50de748
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38719
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/dev/dma_device.cc
src/dev/dma_device.hh