]> xenbits.xensource.com Git - osstest/qemu.git/commit
hw/dma/omap_dma: Add (uint32_t) casts when shifting uint16_t by 16
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:39 +0000 (16:09 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 13 May 2014 15:09:39 +0000 (16:09 +0100)
commit2a41c92854385eb1ae677e79257e136886200ace
treeaaf09b33606f54de590c6d2f4bd8091c3be51eca
parent7e7e5858f83ae711b08d11e2268c6fc6f8385fb7
hw/dma/omap_dma: Add (uint32_t) casts when shifting uint16_t by 16

Add missing (uint32_t) casts in cases where we're trying to
put a uint16_t value into the top half of a 32-bit field.
These were already present in some but not all places.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
hw/dma/omap_dma.c