hw/ppc: Avoid shifting left into sign bit
commita1f7f97b950a46393b0e55a9a0082e70f540cbbd
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 17 Mar 2014 16:00:37 +0000 (17 16:00 +0000)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 27 Mar 2014 15:22:49 +0000 (27 19:22 +0400)
treee8c8f2075392ad8ede249ccbfd01c599671b47e6
parentdef60298825ccff006688ab9ee0ebb266c98b7e7
hw/ppc: Avoid shifting left into sign bit

Add U suffix to various places where we were doing "1 << 31",
which is undefined behaviour, and also to other constant
definitions in the same groups, for consistency.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
hw/ppc/ppc.c
hw/ppc/ppc440_bamboo.c
hw/ppc/ppc4xx_devs.c
hw/ppc/ppc_booke.c
hw/ppc/virtex_ml507.c