diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-14 19:28:44 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2015-08-14 19:28:44 -0500 |
commit | 2d9f3f8582e2de60850852c803a8c8ba0d6b91b5 (patch) | |
tree | f9e7515b599b0425d10f28aa5bdcf9e408284b26 /src/mem/protocol | |
parent | 62dcbe3d959cfaceec093b5990f629ae2553e74b (diff) | |
download | gem5-2d9f3f8582e2de60850852c803a8c8ba0d6b91b5.tar.xz |
ruby: add accessor functions to SLICC def of MachineID
Diffstat (limited to 'src/mem/protocol')
-rw-r--r-- | src/mem/protocol/RubySlicc_Types.sm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/protocol/RubySlicc_Types.sm b/src/mem/protocol/RubySlicc_Types.sm index f464b3c7d..63f4b90ea 100644 --- a/src/mem/protocol/RubySlicc_Types.sm +++ b/src/mem/protocol/RubySlicc_Types.sm @@ -50,7 +50,10 @@ structure(InPort, external = "yes", primitive="yes") { } external_type(NodeID, default="0", primitive="yes"); -external_type(MachineID); +structure (MachineID, external = "yes", non_obj="yes") { + MachineType getType(); + NodeID getNum(); +} structure (Set, external = "yes", non_obj="yes") { void setSize(int); |