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>
# (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
// 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