qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/4] arm: Avoid shifting left into sign bit


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH 0/4] arm: Avoid shifting left into sign bit
Date: Mon, 10 Mar 2014 14:27:44 +0000

On 21 February 2014 13:06, Peter Maydell <address@hidden> wrote:
> Four simple patches which correct situations where we shift left
> into the sign bit of a signed integer type, which is undefined
> behaviour in C. These are by no means the only examples (even
> restricted to ARM board code; try "grep '1 << 31'"), but I'm
> vaguely aiming for "get 'make check' to not emit any clang
> -fsanitize=undefined warnings".
>
> Peter Maydell (4):
>   pxa2xx: Don't shift into sign bit
>   hw/arm/omap1.c: Avoid shifting left into sign bit
>   hw/ssi/xilinx_spips.c: Avoid shifting left into sign bit
>   hw/arm/musicpal: Avoid shifting left into sign bit

Applying these to target-arm.next; no review but they're
pretty trivial.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]