target-mips: Avoid shifting left into sign bit
commitf45cb2f43f5bb0a4122a64e61c746048b59a84ed
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:00:34 +0000 (17 16:00 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 27 Mar 2014 15:22:49 +0000 (27 19:22 +0400)
tree65b2d220048908395dfca31fdea9ef683d01bf88
parentd9631b90da6ac592ea76b41a654dd5d29b2645d4
target-mips: Avoid shifting left into sign bit

Add U suffix to various places where we shift a 1 left by 31,
to avoid undefined behaviour.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target-mips/cpu.h
target-mips/helper.c
target-mips/op_helper.c
target-mips/translate_init.c