From: Mahyar Samani Date: Tue, 1 Sep 2020 23:17:28 +0000 (-0700) Subject: mem,ext: Fixed DRAMSim2 Integration X-Git-Tag: v20.1.0.0~161 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;ds=sidebyside;h=acd63fe5ac44a95a3f748db27855e6674333f76e;p=gem5.git mem,ext: Fixed DRAMSim2 Integration Fixed the way callbacks were used due to changes in src/sim/callback.hh. Removed author line in SConsript. Change-Id: I2c2b8dbe13e4f58680806126cd9cf209748e788a Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/33938 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/ext/dramsim2/SConscript b/ext/dramsim2/SConscript index 869d22032..b4355fa69 100644 --- a/ext/dramsim2/SConscript +++ b/ext/dramsim2/SConscript @@ -35,7 +35,6 @@ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# Authors: Andreas Hansson import os diff --git a/src/mem/dramsim2.cc b/src/mem/dramsim2.cc index aeafad041..2307df061 100644 --- a/src/mem/dramsim2.cc +++ b/src/mem/dramsim2.cc @@ -68,7 +68,7 @@ DRAMSim2::DRAMSim2(const Params* p) : // Register a callback to compensate for the destructor not // being called. The callback prints the DRAMSim2 stats. - registerExitCallback([&wrapper]() { wrapper->printStats(); }); + registerExitCallback([this]() { wrapper.printStats(); }); } void