changeset b6cc436bac61 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=b6cc436bac61
description:
base: Reset CircleBuf size on flush()
The flush() method in CircleBuf resets the state of the circular
buffer, but fails to set size to zero. This obviously confuses code
that tries to determine the amount of data in the buffer. Set the size
to zero on flush.
diffstat:
src/base/circlebuf.cc | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r 358e2e77b2c7 -r b6cc436bac61 src/base/circlebuf.cc
--- a/src/base/circlebuf.cc Tue Jun 09 09:21:12 2015 -0400
+++ b/src/base/circlebuf.cc Tue Jun 09 09:21:14 2015 -0400
@@ -67,6 +67,7 @@
{
_start = 0;
_stop = 0;
+ _size = 0;
_rollover = false;
}
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev