diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-12-11 10:05:55 -0600 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-12-11 10:05:55 -0600 |
commit | 9b72a0f627bb9d9f3028e1ad7bf65976863db099 (patch) | |
tree | bf5532471cff6bba7f790461e148da7904425a78 /src/mem/protocol/MESI_CMP_directory-L1cache.sm | |
parent | 93e283abb348b81d086225f7861d94901c9b0888 (diff) | |
download | gem5-9b72a0f627bb9d9f3028e1ad7bf65976863db099.tar.xz |
ruby: change slicc to allow for constructor args
The patch adds support to slicc for recognizing arguments that should be
passed to the constructor of a class. I did not like the fact that an explicit
check was being carried on the type 'TBETable' to figure out the arguments to
be passed to the constructor.
The patch also moves some of the member variables that are declared for all
the controllers to the base class AbstractController.
Diffstat (limited to 'src/mem/protocol/MESI_CMP_directory-L1cache.sm')
-rw-r--r-- | src/mem/protocol/MESI_CMP_directory-L1cache.sm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/protocol/MESI_CMP_directory-L1cache.sm b/src/mem/protocol/MESI_CMP_directory-L1cache.sm index eb8e62d30..d12e44ba3 100644 --- a/src/mem/protocol/MESI_CMP_directory-L1cache.sm +++ b/src/mem/protocol/MESI_CMP_directory-L1cache.sm @@ -126,7 +126,7 @@ machine(L1Cache, "MESI Directory L1 Cache CMP") bool isPresent(Address); } - TBETable L1_TBEs, template="<L1Cache_TBE>"; + TBETable L1_TBEs, template="<L1Cache_TBE>", constructor="m_number_of_TBEs"; MessageBuffer mandatoryQueue, ordered="false"; |