aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kvm
diff options
context:
space:
mode:
authorJames Hogan <james.hogan@imgtec.com>2016-06-14 04:40:17 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2016-06-14 05:16:25 -0400
commitd86c1ebe8e3d8a13aea9ce8437405d0ea3765698 (patch)
tree6ac4fb24723b7016dc76329a5bea061f99f6321f /arch/mips/kvm
parenteafc4ed206c562d205de9d2acf40d57616faaf03 (diff)
MIPS: KVM: Print unknown load/store encodings
When trying to emulate an unrecognised load or store instruction, print the encoding to aid debug. 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 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/mips/kvm')
-rw-r--r--arch/mips/kvm/emulate.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/mips/kvm/emulate.c b/arch/mips/kvm/emulate.c
index 2004e35288d0..ff4072c2b25e 100644
--- a/arch/mips/kvm/emulate.c
+++ b/arch/mips/kvm/emulate.c
@@ -1412,7 +1412,8 @@ enum emulation_result kvm_mips_emulate_store(u32 inst, u32 cause,
1412 break; 1412 break;
1413 1413
1414 default: 1414 default:
1415 kvm_err("Store not yet supported"); 1415 kvm_err("Store not yet supported (inst=0x%08x)\n",
1416 inst);
1416 er = EMULATE_FAIL; 1417 er = EMULATE_FAIL;
1417 break; 1418 break;
1418 } 1419 }
@@ -1522,7 +1523,8 @@ enum emulation_result kvm_mips_emulate_load(u32 inst, u32 cause,
1522 break; 1523 break;
1523 1524
1524 default: 1525 default:
1525 kvm_err("Load not yet supported"); 1526 kvm_err("Load not yet supported (inst=0x%08x)\n",
1527 inst);
1526 er = EMULATE_FAIL; 1528 er = EMULATE_FAIL;
1527 break; 1529 break;
1528 } 1530 }