summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/MemberExprAST.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-12-31 16:38:30 -0600
committerNilay Vaish <nilay@cs.wisc.edu>2011-12-31 16:38:30 -0600
commit734ef9a209279ea3c391bcb0097241b2235661dc (patch)
treed6be8c137f17431a2c8ec5556899df02c495c087 /src/mem/slicc/ast/MemberExprAST.py
parent19e65a650266a526ca47389188f21bbde79d5054 (diff)
downloadgem5-734ef9a209279ea3c391bcb0097241b2235661dc.tar.xz
SLICC: Use pointers for directory entries
SLICC uses pointers for cache and TBE entries but not for directory entries. This patch changes the protocols, SLICC and Ruby memory system so that even directory entries are referenced using pointers. --HG-- extra : rebase_source : abeb4ac78033d003153751f216fd1948251fcfad
Diffstat (limited to 'src/mem/slicc/ast/MemberExprAST.py')
-rw-r--r--src/mem/slicc/ast/MemberExprAST.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/MemberExprAST.py b/src/mem/slicc/ast/MemberExprAST.py
index 412c178d8..6a6fc49bb 100644
--- a/src/mem/slicc/ast/MemberExprAST.py
+++ b/src/mem/slicc/ast/MemberExprAST.py
@@ -41,7 +41,10 @@ class MemberExprAST(ExprAST):
return_type, gcode = self.expr_ast.inline(True)
fix = code.nofix()
- if str(return_type) == "TBE" or ("interface" in return_type and return_type["interface"] == "AbstractCacheEntry"):
+ if str(return_type) == "TBE" \
+ or ("interface" in return_type and
+ (return_type["interface"] == "AbstractCacheEntry" or
+ return_type["interface"] == "AbstractEntry")):
code("(*$gcode).m_${{self.field}}")
else:
code("($gcode).m_${{self.field}}")