Re: [PATCH 2/2] accel/tcg: avoid integer overflow

2020-03-16 Thread Peter Maydell
On Mon, 16 Mar 2020 at 12:14, Yifei Jiang wrote: > > This fixes coverity issues 75235919, etc., > 1524/* Handle CPU specific unaligned behaviour */ > CID 75235919: (OVERFLOW_BEFORE_WIDEN) > 1525. overflow_before_widen: Potentially overflowing expression "1 << > a_bits" with type

[PATCH 2/2] accel/tcg: avoid integer overflow

2020-03-16 Thread Yifei Jiang
This fixes coverity issues 75235919, etc., 1524/* Handle CPU specific unaligned behaviour */ CID 75235919: (OVERFLOW_BEFORE_WIDEN) 1525. overflow_before_widen: Potentially overflowing expression "1 << a_bits" with type "int" (32 bits, signed) is evaluated using 32-bit arithmetic, and