• Stefan Weil's avatar
    cputlb: Fix regression with TCG interpreter (bug 1310324) · 7e4e8865
    Stefan Weil authored
    Commit 0f842f8a replaced GETPC_EXT() which
    was derived from GETPC() by GETRA_EXT() without fixing cputlb.c. A later
    patch replaced GETRA_EXT() by GETRA() in exec/softmmu_template.h which
    is included in cputlb.c.
    The TCG interpreter failed because the values returned by GETRA() were no
    longer explicitly set to 0. The redefinition of GETRA() introduced here
    fixes this.
    In addition, GETPC_ADJ which is also used in exec/softmmu_template.h is
    set to 0. Both changes reduce the compiled code size for cputlb.c by more
    than 100 bytes, so the normal TCG without interpreter also profits from
    the reduced code size and slightly faster code.
    Cc: qemu-stable@nongnu.org
    Reported-by: default avatarGiovanni Mascellani <gio@debian.org>
    Signed-off-by: default avatarStefan Weil <sw@weilnetz.de>
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
cputlb.c 10.6 KB