From f82418acef066939bf61a0e76702d92c5bb9164b Mon Sep 17 00:00:00 2001 From: Tony Gutierrez Date: Mon, 21 Nov 2016 15:37:07 -0500 Subject: [PATCH] ruby: add default ctor for MachineID type not all uses of MachineID initialize its fields, so here we add a default ctor. --- src/mem/ruby/common/MachineID.hh | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.30.2