mem: Fix DRAM draining to ensure write queue is empty
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 8 Nov 2012 09:25:06 +0000 (04:25 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 8 Nov 2012 09:25:06 +0000 (04:25 -0500)
commitc4b36901d08af0c67fca70943d780c2d3bbe3411
tree821288d1f86950f24ef4859cc56e0f87a686d343
parentbb4f6562aeb1468b908f9353070d3c816bfc0a4d
mem: Fix DRAM draining to ensure write queue is empty

This patch fixes the draining of the SimpleDRAM controller model. The
controller performs buffering of writes and normally there is no need
to ever empty the write buffer (if you have a fast on-chip memory,
then use it). The patch adds checks to ensure the write buffer is
drained when the controller is asked to do so.
src/mem/simple_dram.cc