summaryrefslogtreecommitdiff
path: root/src/dev/terminal.hh
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-08-07 09:59:19 +0100
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-08-07 09:59:19 +0100
commit9b2426ecfc4f004fe77badb4cc64f93af3a2d0d3 (patch)
tree1371894c4c8b50a4bffdea877a9cbe15225df821 /src/dev/terminal.hh
parent39d8034475f09187bee91f90391db26bde287506 (diff)
downloadgem5-9b2426ecfc4f004fe77badb4cc64f93af3a2d0d3.tar.xz
base: Rewrite the CircleBuf to fix bugs and add serialization
The CircleBuf class has at least one bug causing it to overwrite the wrong elements when wrapping. The current code has a lot of unused functionality and duplicated code. This changeset replaces the old implementation with a new version that supports serialization and arbitrary types in the buffer (not just char).
Diffstat (limited to 'src/dev/terminal.hh')
-rw-r--r--src/dev/terminal.hh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dev/terminal.hh b/src/dev/terminal.hh
index f7a860ac5..82246b2c1 100644
--- a/src/dev/terminal.hh
+++ b/src/dev/terminal.hh
@@ -109,11 +109,11 @@ class Terminal : public SimObject
void accept();
protected:
- CircleBuf txbuf;
- CircleBuf rxbuf;
+ CircleBuf<char> txbuf;
+ CircleBuf<char> rxbuf;
std::ostream *outfile;
#if TRACING_ON == 1
- CircleBuf linebuf;
+ CircleBuf<char> linebuf;
#endif
public: