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/MOESI_CMP_directory-L2cache.sm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mem/protocol/MOESI_CMP_directory-L2cache.sm') diff --git a/src/mem/protocol/MOESI_CMP_directory-L2cache.sm b/src/mem/protocol/MOESI_CMP_directory-L2cache.sm index cdc91c292..059fcac71 100644 --- a/src/mem/protocol/MOESI_CMP_directory-L2cache.sm +++ b/src/mem/protocol/MOESI_CMP_directory-L2cache.sm @@ -203,14 +203,14 @@ machine(L2Cache, "Token protocol") MachineID Fwd_GetX_ID, desc="ID of the L1 cache to forward the block to once we get a response"; } - external_type(TBETable) { + structure(TBETable, external = "yes") { TBE lookup(Address); void allocate(Address); void deallocate(Address); bool isPresent(Address); } - external_type(PerfectCacheMemory) { + structure(PerfectCacheMemory, external = "yes") { void allocate(Address); void deallocate(Address); DirEntry lookup(Address); -- cgit v1.2.3