summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2015-08-14 19:28:44 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2015-08-14 19:28:44 -0500
commit2d9f3f8582e2de60850852c803a8c8ba0d6b91b5 (patch)
treef9e7515b599b0425d10f28aa5bdcf9e408284b26
parent62dcbe3d959cfaceec093b5990f629ae2553e74b (diff)
downloadgem5-2d9f3f8582e2de60850852c803a8c8ba0d6b91b5.tar.xz
ruby: add accessor functions to SLICC def of MachineID
-rw-r--r--src/mem/protocol/RubySlicc_Types.sm5
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);