• James Hogan's avatar
    MIPS: KVM: Report more accurate CP0_Config fields to guest · e342925f
    James Hogan authored
    Initialise the guest's CP0_Config register with a few more bits of
    information from the host. The BE bit should be set on big endian
    machines, the VI bit should be set on machines with a virtually tagged
    instruction cache, and the reported architecture revision should match
    that of the host (since we won't support emulating pre-r6 instruction
    encodings on r6 or vice versa).
    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>
    e342925f
trap_emul.c 18 KB