mem,ext: Fixed DRAMSim2 Integration
authorMahyar Samani <msamani@ucdavis.edu>
Tue, 1 Sep 2020 23:17:28 +0000 (16:17 -0700)
committerMahyar Samani <msamani@ucdavis.edu>
Wed, 2 Sep 2020 15:50:43 +0000 (15:50 +0000)
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 <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
ext/dramsim2/SConscript
src/mem/dramsim2.cc

index 869d220323d30afcab614e4122fbec2e17a16995..b4355fa6935a7b3fbfae66b2ac239de656d4b2f7 100644 (file)
@@ -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
 
index aeafad0415aa19d8d27999fb214d35d8a0730965..2307df061c6b7626453142dd4b7affcddcba9320 100644 (file)
@@ -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