From: Gabe Black Date: Fri, 14 Aug 2020 01:19:15 +0000 (-0700) Subject: util,systemc: Update the stats API used in one of the examples. X-Git-Tag: v20.1.0.0~301 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7121bc58ac8cdcaf56ada4d4e5abce1a9efffab3;p=gem5.git util,systemc: Update the stats API used in one of the examples. A new parameter as added to the initText method in March of this year, but this example code was not updated which prevents it from compiling. This change adds the parameter to the call and sets it to what the documenting comments say is the default, true. Change-Id: Ic8da46dba03f01f338c38a7bc02ba232a90ae349 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/32641 Reviewed-by: Jason Lowe-Power Maintainer: Gabe Black Tested-by: kokoro --- diff --git a/util/systemc/gem5_within_systemc/stats.cc b/util/systemc/gem5_within_systemc/stats.cc index 524936513..b073afa0d 100644 --- a/util/systemc/gem5_within_systemc/stats.cc +++ b/util/systemc/gem5_within_systemc/stats.cc @@ -72,7 +72,7 @@ void statsPrepare() void statsDump() { bool desc = true; - Stats::Output *output = Stats::initText(filename, desc); + Stats::Output *output = Stats::initText(filename, desc, true); Stats::processDumpQueue();