diff options
author | Gabe Black <gabeblack@google.com> | 2019-11-27 04:55:13 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2019-11-28 07:13:43 +0000 |
commit | ddcc0ab2b4eb301d4e31800736590e4315b1b6b1 (patch) | |
tree | 25ae4ae6ba53895a16d342b9ddee40db2f21b5f7 /src/systemc/utils/messages.cc | |
parent | 2a0140593f652f446464be1f0e01e5c1f9069a4b (diff) | |
download | gem5-ddcc0ab2b4eb301d4e31800736590e4315b1b6b1.tar.xz |
arm: Make sure not to shift off of the end of a uint32_t in KVM.
The methods which set or get an attribute from the virtual GIC use a
shift constant which is 32, but they store their result in a 32 bit
variable and, according to clang, are used to shift 32 bit inputs. This
is undefined behavior in terms of the shift, and will truncate off the
value regardless.
Change-Id: Ie9543ab9e6e1d5f86317a9210d220928b23ffaf8
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/23129
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ciro Santilli <ciro.santilli@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Diffstat (limited to 'src/systemc/utils/messages.cc')
0 files changed, 0 insertions, 0 deletions