Searched hist:"001 ebaca" (Results 1 – 1 of 1) sorted by relevance
/openbmc/qemu/disas/ |
H A D | cris.c | 001ebaca Fri Mar 03 09:50:32 CST 2017 Peter Maydell <peter.maydell@linaro.org> 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
|