ruby: add accessor functions to SLICC def of MachineID
authorNilay Vaish <nilay@cs.wisc.edu>
Sat, 15 Aug 2015 00:28:44 +0000 (19:28 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Sat, 15 Aug 2015 00:28:44 +0000 (19:28 -0500)
src/mem/protocol/RubySlicc_Types.sm

index f464b3c7d747a21f8816ed17f2ea0becd265104f..63f4b90ea996c4c759c8149409b8310720a7765c 100644 (file)
@@ -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);