Eric Auger 118eee6cee hw/arm/smmu-common: Fix coverity issue in get_block_pte_address
Coverity points out that this can overflow if n > 31,
because it's only doing 32-bit arithmetic. Let's use 1ULL instead
of 1. Also the formulae used to compute n can be replaced by
the level_shift() macro.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1526493784-25328-3-git-send-email-eric.auger@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2018-05-18 17:48:07 +01:00
..
2018-05-14 14:15:27 +01:00
2018-05-18 09:13:37 +02:00
2018-03-01 11:05:45 +00:00
2018-05-15 11:33:33 -03:00
2018-03-02 13:45:50 -06:00
2016-01-29 15:07:25 +00:00
2018-05-10 10:25:15 +01:00
2018-03-02 13:45:50 -06:00
2018-02-19 13:03:24 +02:00