Re: [PATCH 0/2] avoid integer overflow

2020-03-16 Thread Peter Maydell
On Mon, 16 Mar 2020 at 12:25, Yifei Jiang wrote: > > the constant default type is "int", when the constant is shifted to the left, > it may exceed 32 bits, resulting in integer overflowing. So constant type need > change to "long" "long" would not in general be the right type to use in cases

[PATCH 0/2] avoid integer overflow

2020-03-16 Thread Yifei Jiang
the constant default type is "int", when the constant is shifted to the left, it may exceed 32 bits, resulting in integer overflowing. So constant type need change to "long" Yifei Jiang (2): tcg: avoid integer overflow accel/tcg: avoid integer overflow accel/tcg/cputlb.c | 6 +++---