From 18142df5b9f7fa62e5a66092bb9451f920364018 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 18 Mar 2011 14:12:04 -0500 Subject: 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. --- src/mem/protocol/MESI_CMP_directory-dir.sm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mem/protocol/MESI_CMP_directory-dir.sm') diff --git a/src/mem/protocol/MESI_CMP_directory-dir.sm b/src/mem/protocol/MESI_CMP_directory-dir.sm index 46c14bc0f..c47df9433 100644 --- a/src/mem/protocol/MESI_CMP_directory-dir.sm +++ b/src/mem/protocol/MESI_CMP_directory-dir.sm @@ -95,7 +95,7 @@ machine(Directory, "MESI_CMP_filter_directory protocol") int Len, desc="..."; } - external_type(TBETable) { + structure(TBETable, external="yes") { TBE lookup(Address); void allocate(Address); void deallocate(Address); -- cgit v1.2.3