• James Hogan's avatar
    MIPS: KVM: Decode RDHWR more strictly · 8eeab81c
    James Hogan authored
    When KVM emulates the RDHWR instruction, decode the instruction more
    strictly. The rs field (bits 25:21) should be zero, as should bits 10:9.
    Bits 8:6 is the register select field in MIPSr6, so we aren't strict
    about those bits (no other operations should use that encoding space).
    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>
    8eeab81c
emulate.c 69.5 KB