summaryrefslogtreecommitdiff
path: root/src/mem/ruby/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/ruby/common')
-rw-r--r--src/mem/ruby/common/MachineID.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mem/ruby/common/MachineID.hh b/src/mem/ruby/common/MachineID.hh
index 0ad898959..a28b0af7e 100644
--- a/src/mem/ruby/common/MachineID.hh
+++ b/src/mem/ruby/common/MachineID.hh
@@ -37,6 +37,10 @@
struct MachineID
{
+ MachineID() : type(MachineType_NULL), num(0) { }
+ MachineID(MachineType mach_type, NodeID node_id)
+ : type(mach_type), num(node_id) { }
+
MachineType type;
//! range: 0 ... number of this machine's components in system - 1
NodeID num;