changeset 70052ef97ce1 in /z/repo/gem5 details: http://repo.gem5.org/gem5?cmd=changeset;node=70052ef97ce1 description: ruby: add default ctor for MachineID type
not all uses of MachineID initialize its fields, so here we add a default ctor. diffstat: src/mem/ruby/common/MachineID.hh | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diffs (14 lines): diff -r 8565c34ec32e -r 70052ef97ce1 src/mem/ruby/common/MachineID.hh --- a/src/mem/ruby/common/MachineID.hh Mon Nov 21 15:35:56 2016 -0500 +++ b/src/mem/ruby/common/MachineID.hh Mon Nov 21 15:37:07 2016 -0500 @@ -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; _______________________________________________ gem5-dev mailing list gem5-dev@gem5.org http://m5sim.org/mailman/listinfo/gem5-dev