From: Tony Gutierrez Date: Mon, 21 Nov 2016 20:37:07 +0000 (-0500) Subject: ruby: add default ctor for MachineID type X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f82418acef066939bf61a0e76702d92c5bb9164b;p=gem5.git ruby: add default ctor for MachineID type not all uses of MachineID initialize its fields, so here we add a default ctor. --- 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;