diff options
author | Tony Gutierrez <anthony.gutierrez@amd.com> | 2016-11-21 15:37:07 -0500 |
---|---|---|
committer | Tony Gutierrez <anthony.gutierrez@amd.com> | 2016-11-21 15:37:07 -0500 |
commit | f82418acef066939bf61a0e76702d92c5bb9164b (patch) | |
tree | 3b8e13bdef939a6f5f456c1fd383d76f0b5fa3dc | |
parent | 0799600686a918c06ffad72221ba3e3c961d3164 (diff) | |
download | gem5-f82418acef066939bf61a0e76702d92c5bb9164b.tar.xz |
ruby: add default ctor for MachineID type
not all uses of MachineID initialize its fields, so here we add a default
ctor.
-rw-r--r-- | src/mem/ruby/common/MachineID.hh | 4 |
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; |