Aleksandar Markovic cd3ed7db22 hw/misc: mips_itu: Fix 32/64 bit issue in a line involving shift operator
Fix 32/64 bit issue in a line involving shift operator. "1 << ..."
calculation of size is done as a 32-bit signed integer which may
then be unintentionally sign-extended into the 64-bit result. The
problem was discovered by Coverity (CID 1398648). Using "1ULL"
instead of "1" on the LHS of the shift fixes this problem.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Aleksandar Markovic <amarkovic@wavecomp.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
2019-02-21 19:36:47 +01:00
..
2019-01-24 13:10:19 +01:00
2019-02-12 08:59:21 -08:00
2019-02-05 19:39:22 +00:00
2019-02-14 11:46:30 +01:00
2019-02-18 10:52:08 +11:00
2019-02-05 16:50:19 +01:00
2016-01-29 15:07:25 +00:00
2019-02-18 16:20:13 +00:00
2019-02-18 16:20:13 +00:00
2019-02-05 19:39:22 +00:00
2019-02-07 16:49:30 +00:00