summaryrefslogtreecommitdiff
path: root/src/base/timebuf.hh
diff options
context:
space:
mode:
authorKevin Lim <ktlim@umich.edu>2006-07-10 15:40:28 -0400
committerKevin Lim <ktlim@umich.edu>2006-07-10 15:40:28 -0400
commitfcaafdc48cc624825760cb3ba7bbc28e5db6acfa (patch)
tree16095d7881217cc548d873ab0e63d89f6a95d87c /src/base/timebuf.hh
parent43245d9c2f3986430c1fbc4a09ee90096f6d3f30 (diff)
downloadgem5-fcaafdc48cc624825760cb3ba7bbc28e5db6acfa.tar.xz
Add parameters for backwards and forwards sizes for time buffers.
src/base/timebuf.hh: Add a function to return the size of the time buffer. --HG-- extra : convert_revision : 8ffacd8b9013eb76264df065244e00dc1460efd4
Diffstat (limited to 'src/base/timebuf.hh')
-rw-r--r--src/base/timebuf.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/timebuf.hh b/src/base/timebuf.hh
index 160a97034..a484a3179 100644
--- a/src/base/timebuf.hh
+++ b/src/base/timebuf.hh
@@ -215,6 +215,11 @@ class TimeBuffer
{
return wire(this, 0);
}
+
+ int getSize()
+ {
+ return size;
+ }
};
#endif // __BASE_TIMEBUF_HH__