Tiago Mück has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/31272 )

Change subject: mem-ruby: Additional TBE table methods
......................................................................

mem-ruby: Additional TBE table methods

Allows checking the capacity and current size of the TBE table

Change-Id: I2f9bdfb50e2cee19d7fd8ea9c62d1dc8307b58e6
Signed-off-by: Tiago Mück <tiago.m...@arm.com>
---
M src/mem/ruby/structures/TBETable.hh
1 file changed, 4 insertions(+), 0 deletions(-)



diff --git a/src/mem/ruby/structures/TBETable.hh b/src/mem/ruby/structures/TBETable.hh
index 1505743..7419c58 100644
--- a/src/mem/ruby/structures/TBETable.hh
+++ b/src/mem/ruby/structures/TBETable.hh
@@ -72,6 +72,10 @@
     // Print cache contents
     void print(std::ostream& out) const;

+    int size() const { return m_size; }
+
+    int capacity() const { return m_number_of_TBEs; }
+
   private:
     // Private copy constructor and assignment operator
     TBETable(const TBETable& obj);

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/31272
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I2f9bdfb50e2cee19d7fd8ea9c62d1dc8307b58e6
Gerrit-Change-Number: 31272
Gerrit-PatchSet: 1
Gerrit-Owner: Tiago Mück <tiago.m...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- gem5-dev@gem5.org
To unsubscribe send an email to gem5-dev-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to