Home
last modified time | relevance | path

Searched hist:76486736 (Results 1 – 1 of 1) sorted by relevance

/qemu/hw/dma/
H A Domap_dma.c76486736 Fri Jun 28 12:51:59 GMT 2013 Peter Maydell <peter.maydell@linaro.org> hw/dma/omap_dma: Fix bugs with DMA requests above 32

The drqbmp field of struct soc_dma_s is a uint64_t; however several
places in the code attempt to set bits in it using "(1 << drq)",
which will fail if drq is large enough that the 1 bit gets shifted
off the top of a 32 bit integer. Change these to "(1ULL << drq)" so
that the promotion to 64 bit happens before the shift rather than
afterwards.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1372423919-5669-1-git-send-email-peter.maydell@linaro.org