base: Make read-only functions const in ScalarBase
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 19 Feb 2020 08:27:17 +0000 (09:27 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 5 Feb 2021 14:10:31 +0000 (14:10 +0000)
commit3c915a2e84ff90117cf45461c7c6befd8bebb7a5
treea9dfcb374385766804ba8191f36d2acc09393edb
parent5ca6b8394433ba963d4e6f2b5225eee5876fca3f
base: Make read-only functions const in ScalarBase

These functions do not need to modify their storage's contents.

ScalarBase's non-const value() has been removed.

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