summaryrefslogtreecommitdiff
path: root/TESTING.md
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-08-30 17:41:05 -0700
committerGabe Black <gabeblack@google.com>2018-10-03 00:27:44 +0000
commit3c40f3c0c420dc4215c97a646359f7cda5de829e (patch)
tree54ef2c4c9b93b2d3fa41a795a83007a2b6c81d9b /TESTING.md
parent4c467c9ea9838b3644be131f455263f47a8f3988 (diff)
downloadgem5-3c40f3c0c420dc4215c97a646359f7cda5de829e.tar.xz
systemc: Implement sc_fifo::dump and improve sc_fifo::print.
The print function is supposed to print both pending and committed writes, apparently. Accellera's implementation of sc_fifo uses a ring buffer to store the entries and manages a head and tail pointer to keep track of what's full, etc. Their dump function prints that whole buffer using the indexes. When not using a ring buffer, there's no easy way to determine what those indexes should be. Fortunately the test that uses dump never moves away from the base of the ring buffer, so I can get the same effect (which also makes sense on its own) by printing the index into the fifo instead. Change-Id: I50fe049461f6a5e8a55b54eeb2f134d20f0812c6 Reviewed-on: https://gem5-review.googlesource.com/c/12455 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'TESTING.md')
0 files changed, 0 insertions, 0 deletions