summaryrefslogtreecommitdiffstats
path: root/scripts/switch-timer-api
diff options
context:
space:
mode:
authorPeter Maydell2017-03-03 16:50:32 +0100
committerPeter Maydell2017-03-07 15:33:51 +0100
commit001ebaca7b1120233e04c38f3e3ad3f377137c69 (patch)
treecc96ab76674cc17e5139ec3264a3041ab4d37c84 /scripts/switch-timer-api
parentdisas/microblaze: Avoid unintended sign extension (diff)
downloadqemu-001ebaca7b1120233e04c38f3e3ad3f377137c69.tar.gz
qemu-001ebaca7b1120233e04c38f3e3ad3f377137c69.tar.xz
qemu-001ebaca7b1120233e04c38f3e3ad3f377137c69.zip
disas/cris: Avoid unintended sign extension
In the cris disassembler we were using 'unsigned long' to calculate addresses which are supposed to be 32 bits. This meant that we might accidentally sign extend or calculate a value that was outside the 32 bit range of the guest CPU. Use 'uint32_t' instead so we give the right answers on 64-bit hosts. (Spotted by Coverity, CID 1005402, 1005403.) Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-id: 1488556233-31246-6-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'scripts/switch-timer-api')
0 files changed, 0 insertions, 0 deletions