base: Fix storage params safe_cast
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 3 Feb 2021 21:15:10 +0000 (18:15 -0300)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 5 Feb 2021 18:51:43 +0000 (18:51 +0000)
commit0f7441fa2d7fe02f403537866ca55940369f93b7
tree3d3fe400633e325dffd2cd4ed58eb3fc8867e9a1
parent3c915a2e84ff90117cf45461c7c6befd8bebb7a5
base: Fix storage params safe_cast

Although they provide the exact same behavior, the params
created in the tests did not have the type expected by the
internal safe cast.

The following error was triggered:

storage.test.debug: build/NULL/base/cast.hh:47: T safe_cast(U)
 [with T = const Stats::SampleStor::Params*;
  U = const Stats::StorageParams*]:
 Assertion `ret' failed.

Change-Id: I4f2ba51f3ccdb44589e61f235997245e7d9bf3c9
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/40555
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Bobby R. Bruce <bbruce@ucdavis.edu>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
src/base/stats/storage.test.cc