base-stats: Use smart pointer for info's storageParams
Previously the storage params were not being deallocated. Make sure this happens by managing it with smart pointers. As a side effect, encapsulate this variable to facilitate future changes. Change-Id: I4c2496d08241f155793ed35e3463512d9ea06f83 Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38178 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Hoa Nguyen <hoanguyen@ucdavis.edu> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com>
This commit is contained in:
committed by
Daniel Carvalho
parent
70194795c3
commit
bb596f55e3
@@ -99,7 +99,7 @@ InfoAccess::setInfo(Group *parent, Info *info)
|
||||
void
|
||||
InfoAccess::setParams(const StorageParams *params)
|
||||
{
|
||||
info()->storageParams = params;
|
||||
info()->setStorageParams(params);
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user