mem: Create a separate class for the cache write buffer
authorAndreas Hansson <andreas.hansson@arm.com>
Thu, 17 Mar 2016 13:51:18 +0000 (09:51 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Thu, 17 Mar 2016 13:51:18 +0000 (09:51 -0400)
commit041ea8107e4250a9c120a6fde11f3dc415c2fe6a
tree13c75f78d88ab7c9077babd5e9b8a3a36fcba3d7
parentf5d1dd75e57d9c63c5f6ab4d0c7c0c45f8726a95
mem: Create a separate class for the cache write buffer

This patch breaks out the cache write buffer into a separate class,
without affecting any stats. The goal of the patch is to avoid
encumbering the much-simpler write queue with the complex MSHR
handling. In a follow on patch this simplification allows us to
implement write combining.

The WriteQueue gets its own class, but shares a common ancestor, the
generic Queue, with the MSHRQueue.
15 files changed:
src/mem/cache/SConscript
src/mem/cache/base.cc
src/mem/cache/base.hh
src/mem/cache/cache.cc
src/mem/cache/cache.hh
src/mem/cache/mshr.cc
src/mem/cache/mshr.hh
src/mem/cache/mshr_queue.cc
src/mem/cache/mshr_queue.hh
src/mem/cache/queue.hh [new file with mode: 0644]
src/mem/cache/queue_entry.hh [new file with mode: 0644]
src/mem/cache/write_queue.cc [new file with mode: 0644]
src/mem/cache/write_queue.hh [new file with mode: 0644]
src/mem/cache/write_queue_entry.cc [new file with mode: 0644]
src/mem/cache/write_queue_entry.hh [new file with mode: 0644]