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_hammer-cache.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_hammer-cache.sm')
-rw-r--r-- | src/mem/protocol/MOESI_hammer-cache.sm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/protocol/MOESI_hammer-cache.sm b/src/mem/protocol/MOESI_hammer-cache.sm index 4bbf3bde1..4ac59940b 100644 --- a/src/mem/protocol/MOESI_hammer-cache.sm +++ b/src/mem/protocol/MOESI_hammer-cache.sm @@ -145,7 +145,7 @@ machine(L1Cache, "AMD Hammer-like protocol") Time FirstResponseTime, default="0", desc="the time the first response was received"; } - external_type(TBETable) { + structure(TBETable, external="yes") { TBE lookup(Address); void allocate(Address); void deallocate(Address); |