• A
    tcg/arm: fix TLB access in qemu-ld/st ops · d17bd1d8
    Aurelien Jarno 提交于
    The TCG arm backend considers likely that the offset to the TLB
    entries does not exceed 12 bits for mem_index = 0. In practice this is
    not true for at least the MIPS target.
    
    The current patch fixes that by loading the bits 23-12 with a separate
    instruction, and using loads with address writeback, independently of
    the value of mem_idx. In total this allow a 24-bit offset, which is a
    lot more than needed.
    
    Cc: Andrzej Zaborowski <balrogg@gmail.com>
    Cc: Peter Maydell <peter.maydell@linaro.org>
    Cc: qemu-stable@nongnu.org
    Signed-off-by: NAurelien Jarno <aurelien@aurel32.net>
    d17bd1d8
tcg-target.c 61.8 KB