diff options
author | James Hogan <james.hogan@imgtec.com> | 2017-03-14 10:15:15 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2017-03-28 14:53:44 +0100 |
commit | 8b48d5b75dc4cbae8cfe83648f9e4e10cb407dce (patch) | |
tree | 13c50919f63ebdd6742c9ebec9779d390bd9a359 /net/ncsi/ncsi-aen.c | |
parent | 955d8dc3ee555e9320fabbeab0969f9cf7660f9d (diff) |
KVM: MIPS/Emulate: De-duplicate MMIO emulation
Refactor MIPS KVM MMIO load/store emulation to reduce code duplication.
Each duplicate differed slightly anyway, and it will simplify adding
64-bit MMIO support for VZ.
kvm_mips_emulate_store() and kvm_mips_emulate_load() can now return
EMULATE_DO_MMIO (as possibly originally intended). We therefore stop
calling either of these from kvm_mips_emulate_inst(), which is now only
used by kvm_trap_emul_handle_cop_unusable() which is picky about return
values.
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
Diffstat (limited to 'net/ncsi/ncsi-aen.c')
0 files changed, 0 insertions, 0 deletions