MIPS: KVM: Convert emulation to use asm/inst.h
authorJames Hogan <james.hogan@imgtec.com>
Wed, 15 Jun 2016 18:29:47 +0000 (19:29 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 15 Jun 2016 21:58:17 +0000 (23:58 +0200)
commit258f3a2ea93ff7e322006c716cedc4fa3d861453
tree06792df7de3f877db5af2850c454f36a18d11cec
parentd5cd26bcfc881f5443d510e3acd40b30d7b7d0df
MIPS: KVM: Convert emulation to use asm/inst.h

Convert various MIPS KVM guest instruction emulation functions to decode
instructions (and encode translations) using the union mips_instruction
and related enumerations in asm/inst.h rather than #defines and
hardcoded values.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Acked-by: Ralf Baechle <ralf@linux-mips.org>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/include/asm/kvm_host.h
arch/mips/include/uapi/asm/inst.h
arch/mips/kvm/dyntrans.c
arch/mips/kvm/emulate.c