Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: MIPS/Emulate: Drop CACHE emulation for VZ

Ifdef out the trap & emulate CACHE instruction emulation functions for
VZ. We will provide separate CACHE instruction emulation in vz.c, and we
need to avoid linker errors due to the use of T&E specific MMU helpers.

Signed-off-by: James 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

+2
+2
arch/mips/kvm/emulate.c
··· 1665 1665 return EMULATE_DO_MMIO; 1666 1666 } 1667 1667 1668 + #ifndef CONFIG_KVM_MIPS_VZ 1668 1669 static enum emulation_result kvm_mips_guest_cache_op(int (*fn)(unsigned long), 1669 1670 unsigned long curr_pc, 1670 1671 unsigned long addr, ··· 1873 1872 1874 1873 return er; 1875 1874 } 1875 + #endif /* CONFIG_KVM_MIPS_VZ */ 1876 1876 1877 1877 /** 1878 1878 * kvm_mips_guest_exception_base() - Find guest exception vector base address.