Add basic MIPS KVM support for MIPS32r6, primarily to prepare for VZ support on r6 processors. This patchset is based on my recent uasm conversion patchset. Patches 1-2 from Paul are general MIPS changes which make a couple of tweaks to the naming of opcode definitions. They aren't expected to conflict with MIPS changes in v4.8. Patches 3-9 make fairly simple changes to support r6, and are self explanatory. James Hogan (7): MIPS: KVM: Fix fpu.S misassembly with r6 MIPS: KVM: Fix pre-r6 ll/sc instructions on r6 MIPS: KVM: Don't save/restore lo/hi for r6 MIPS: KVM: Support r6 compact branch emulation MIPS: KVM: Recognise r6 CACHE encoding MIPS: KVM: Decode RDHWR more strictly MIPS: KVM: Emulate generic QEMU machine on r6 T&E Paul Burton (2): MIPS: inst.h: Rename b{eq,ne}zcji[al]c_op to pop{6,7}6_op MIPS: inst.h: Rename cbcond{0,1}_op to pop{1,3}0_op arch/mips/include/asm/kvm_host.h | 6 +-- arch/mips/include/uapi/asm/inst.h | 8 ++-- arch/mips/kernel/branch.c | 8 ++-- arch/mips/kvm/dyntrans.c | 5 ++- arch/mips/kvm/emulate.c | 77 +++++++++++++++++++++++++++++++++++---- arch/mips/kvm/entry.c | 16 ++------ arch/mips/kvm/fpu.S | 7 +++- arch/mips/kvm/mips.c | 6 +++ arch/mips/kvm/trap_emul.c | 8 +++- arch/mips/math-emu/cp1emu.c | 8 ++-- 10 files changed, 110 insertions(+), 39 deletions(-) Cc: Paolo Bonzini <pbonzini@xxxxxxxxxx> Cc: Radim Krčmář <rkrcmar@xxxxxxxxxx> Cc: Ralf Baechle <ralf@xxxxxxxxxxxxxx> Cc: Paul Burton <paul.burton@xxxxxxxxxx> Cc: linux-mips@xxxxxxxxxxxxxx Cc: kvm@xxxxxxxxxxxxxxx -- 2.4.10