• James Hogan's avatar
    MIPS: KVM: Fix 64-bit big endian dynamic translation · 5808844f
    James Hogan authored
    The MFC0 and MTC0 instructions in the guest which cause traps can be
    replaced with 32-bit loads and stores to the commpage, however on big
    endian 64-bit builds the offset needs to have 4 added so as to
    load/store the least significant half of the long instead of the most
    significant half.
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: "Radim Krčmář" <rkrcmar@redhat.com>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    5808844f
dyntrans.c 3.82 KB