summaryrefslogtreecommitdiff
path: root/src/mem/protocol
diff options
context:
space:
mode:
authorJoe Gross <joseph.gross@amd.com>2015-11-13 17:30:56 -0500
committerJoe Gross <joseph.gross@amd.com>2015-11-13 17:30:56 -0500
commit5143d480f381b6f27316646f8129bc452c11c9f8 (patch)
treee2b0829cf4134d0f3f7bafb455af8d7e2bcb8920 /src/mem/protocol
parentaef8d851bde80f0148ad234d3b216461d364dba3 (diff)
downloadgem5-5143d480f381b6f27316646f8129bc452c11c9f8.tar.xz
ruby: add BoolVec
The BoolVec typedef and insertion operator overload function simplify usage of vectors of type bool
Diffstat (limited to 'src/mem/protocol')
-rw-r--r--src/mem/protocol/RubySlicc_Util.sm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mem/protocol/RubySlicc_Util.sm b/src/mem/protocol/RubySlicc_Util.sm
index 9e78be65f..a179e5bbc 100644
--- a/src/mem/protocol/RubySlicc_Util.sm
+++ b/src/mem/protocol/RubySlicc_Util.sm
@@ -43,3 +43,6 @@ Addr setOffset(Addr addr, int offset);
Addr makeLineAddress(Addr addr);
int getOffset(Addr addr);
int mod(int val, int mod);
+structure(BoolVec, external="yes") {
+}
+int countBoolVec(BoolVec bVec);