• James Hogan's avatar
    MIPS: KVM: Fix pre-r6 ll/sc instructions on r6 · d85ebff0
    James Hogan authored
    The atomic KVM register access macros in kvm_host.h (for the guest Cause
    register with KVM in trap & emulate mode) use ll/sc instructions,
    however they still .set mips3, which causes pre-MIPSr6 instruction
    encodings to be emitted, even for a MIPSr6 build.
    
    Fix it to use MIPS_ISA_ARCH_LEVEL as other parts of arch/mips already
    do.
    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>
    d85ebff0
kvm_host.h 27.1 KB