On Fri, 30 Oct 2020 at 14:46, Philippe Mathieu-Daudé <phi...@redhat.com> wrote: > > Use the BIT_ULL() macro to ensure we use 64-bit arithmetic. > This fixes the following Coverity issue (OVERFLOW_BEFORE_WIDEN): > > CID 1432363 (#1 of 1): Unintentional integer overflow: > > overflow_before_widen: > Potentially overflowing expression 1 << scale with type int > (32 bits, signed) is evaluated using 32-bit arithmetic, and > then used in a context that expects an expression of type > hwaddr (64 bits, unsigned). > > Signed-off-by: Philippe Mathieu-Daudé <phi...@redhat.com> > --- > hw/arm/smmuv3.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-)
Applied to target-arm.next, thanks. -- PMM