summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2019-11-04 15:02:04 -0800
committerGabe Black <gabeblack@google.com>2019-11-06 01:41:12 +0000
commit29fce1d26b395f3a82f757ea37f4c53da8fbde11 (patch)
treecf1ffbb4b9268e4fc7c254d8d6bc6ec4a582ea8a /src/arch
parent76b10e2b4abf36e441707e7e075ade75b11ab667 (diff)
downloadgem5-29fce1d26b395f3a82f757ea37f4c53da8fbde11.tar.xz
cpu: Use std::array for registers in SimpleThread.
If the number of one of the register types is zero (useful on ARM in the near future), memset will complain that it's given the length of the array without multiplying by the size of the array elements. This is a false positive since the length of the array and the number of elements are both zero. To avoid that warning/error and to simplify and update the SimpleThread class slightly, this change replaces the C style arrays with std::array. Change-Id: Ifedd081a1940a578765c4d585e623236008ace67 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22523 Reviewed-by: Jason Lowe-Power <jason@lowepower.com> Maintainer: Gabe Black <gabeblack@google.com> Tested-by: kokoro <noreply+kokoro@google.com>
Diffstat (limited to 'src/arch')
0 files changed, 0 insertions, 0 deletions