mem-garnet: Initialize unused Credit members
authorMichael LeBeane <Michael.Lebeane@amd.com>
Fri, 8 Mar 2019 19:12:36 +0000 (14:12 -0500)
committerSrikant Bharadwaj <srikant.bharadwaj@amd.com>
Fri, 4 Sep 2020 22:17:36 +0000 (22:17 +0000)
commit6be16d84da969319e9e25e709474e968808f39f4
tree3c498991a0ec6860b719a9fb28f35108d1e13d9a
parentb9f1c71fe781e823b399584a5a694420287b2a8c
mem-garnet: Initialize unused Credit members

The Credit class doesn't initialize a number of its unused base class
fields.  This leads to non-determanistic traces when printing flits that
are Credits.  This patch initializes all unused fields to 0.

Change-Id: Ib73c652c71a10be57b24c0d6e1ac22eafa421e11
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32598
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/mem/ruby/network/garnet2.0/CommonTypes.hh
src/mem/ruby/network/garnet2.0/Credit.cc