summaryrefslogtreecommitdiff
path: root/src/mem/protocol/MOESI_CMP_directory-dir.sm
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-03-18 14:12:04 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-03-18 14:12:04 -0500
commit18142df5b9f7fa62e5a66092bb9451f920364018 (patch)
tree5081404fed6145254a5fab61cba1120e8d22ca1b /src/mem/protocol/MOESI_CMP_directory-dir.sm
parent3f27ccbb5488a6904f8bffc7e2ecc58c39a09119 (diff)
downloadgem5-18142df5b9f7fa62e5a66092bb9451f920364018.tar.xz
SLICC: Remove external_type for structures
In SLICC, in order to define a type a data type for which it should not generate any code, the keyword external_type is used. For those data types for which code should be generated, the keyword structure is used. This patch eliminates the use of keyword external_type for defining structures. structure key word can now have an optional attribute external, which would be used for figuring out whether or not to generate the code for this structure. Also, now structures can have functions as well data members in them.
Diffstat (limited to 'src/mem/protocol/MOESI_CMP_directory-dir.sm')
-rw-r--r--src/mem/protocol/MOESI_CMP_directory-dir.sm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/protocol/MOESI_CMP_directory-dir.sm b/src/mem/protocol/MOESI_CMP_directory-dir.sm
index 55afa7161..42d46e501 100644
--- a/src/mem/protocol/MOESI_CMP_directory-dir.sm
+++ b/src/mem/protocol/MOESI_CMP_directory-dir.sm
@@ -109,7 +109,7 @@ machine(Directory, "Directory protocol")
MachineID Requestor, desc="original requestor";
}
- external_type(TBETable) {
+ structure(TBETable, external = "yes") {
TBE lookup(Address);
void allocate(Address);
void deallocate(Address);