target-arm: Add ULL suffix to calculation of page size
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 19 Jun 2014 17:06:24 +0000 (18:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 19 Jun 2014 17:06:24 +0000 (18:06 +0100)
commit5661ae6be23d8831a19c82f8eafb2aaecdf2da6a
tree77fb3fd29588ffcfde49ef24492d5108ecb8ecb2
parent0062609f70b465a56cf80bc573d0971ef2a0affb
target-arm: Add ULL suffix to calculation of page size

The maximum block size for AArch64 address translation is 2GB. This means
that we need a ULL suffix on our shift to avoid shifting into the sign
bit of a signed 32 bit integer.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Message-id: 1402171881-14343-2-git-send-email-peter.maydell@linaro.org
target-arm/helper.c