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 <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
Mahyar Samani
2020-09-01 16:17:28 -07:00
parent 2427fc2c82
commit acd63fe5ac
2 changed files with 1 additions and 2 deletions

View 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

View 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