sim-se: Fix invalid delete of params on clone
authorJason Lowe-Power <jason@lowepower.com>
Mon, 15 Apr 2019 21:00:21 +0000 (14:00 -0700)
committerBrandon Potter <Brandon.Potter@amd.com>
Thu, 3 Oct 2019 13:52:03 +0000 (13:52 +0000)
commitaa3b372a9598192a02e084b7ddf1cfa6426019fb
tree5aac8292b11f1387919eb1bf886952a45fc21ff7
parentd9fee95b715e54eafbd2c5c2a618ef92af32e3a5
sim-se: Fix invalid delete of params on clone

The params pointer is kept by the SimObject and should not be deleted
until gem5 exits. Added a to do to remember this object is leaked.

Change-Id: I46cc23a09e4e9b6bc2fdcd961148324c41820815
Signed-off-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18068
Tested-by: kokoro <noreply+kokoro@google.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
src/sim/syscall_emul.hh