diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2011-03-18 14:12:04 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2011-03-18 14:12:04 -0500 |
commit | 18142df5b9f7fa62e5a66092bb9451f920364018 (patch) | |
tree | 5081404fed6145254a5fab61cba1120e8d22ca1b /src/mem/protocol/MOESI_CMP_directory-L2cache.sm | |
parent | 3f27ccbb5488a6904f8bffc7e2ecc58c39a09119 (diff) | |
download | gem5-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-L2cache.sm')
-rw-r--r-- | src/mem/protocol/MOESI_CMP_directory-L2cache.sm | 4 |
1 files changed, 2 insertions, 2 deletions
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); |