sim: Fix -Werror=maybe-uninitialized in system.cc
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 25 Jun 2020 08:27:58 +0000 (09:27 +0100)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Thu, 25 Jun 2020 22:40:56 +0000 (22:40 +0000)
commit2edcd3dbc82b68658a2e68070a92d053a2001c61
treef9173565a9bb46f9464b023453b188e7deabfc15
parentf55510c303cfae7d25c2169fac7a254b4a66bc74
sim: Fix -Werror=maybe-uninitialized in system.cc

The patch is simply initializing when to 0 before unserializing
the real value

Change-Id: I4e19eeafa9334116b440948af1943f3835803671
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30594
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
src/sim/system.cc