qemu/target/mips/tcg/sysemu
Philippe Mathieu-Daudé 2838b1d635 target/mips: Fix potential integer overflow (CID 1452921)
Use the BIT_ULL() macro to ensure we use 64-bit arithmetic.
This fixes the following Coverity issue (OVERFLOW_BEFORE_WIDEN):

  CID 1452921:  Integer handling issues:

    Potentially overflowing expression "1 << w" with type "int"
    (32 bits, signed) is evaluated using 32-bit arithmetic, and
    then used in a context that expects an expression of type
    "uint64_t" (64 bits, unsigned).

Fixes: 074cfcb4da ("target/mips: Implement hardware page table walker")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210505215119.1517465-1-f4bug@amsat.org>
2021-06-24 16:44:14 +02:00
..
cp0_helper.c target/mips: Move sysemu TCG-specific code to tcg/sysemu/ subfolder 2021-05-02 16:49:35 +02:00
meson.build target/mips: Move Special opcodes to tcg/sysemu/special_helper.c 2021-05-02 16:49:35 +02:00
mips-semi.c target/mips: Move sysemu TCG-specific code to tcg/sysemu/ subfolder 2021-05-02 16:49:35 +02:00
special_helper.c target/mips: Move helper_cache() to tcg/sysemu/special_helper.c 2021-05-02 16:49:35 +02:00
tlb_helper.c target/mips: Fix potential integer overflow (CID 1452921) 2021-06-24 16:44:14 +02:00