MIPS: KVM: Print unknown load/store encodings
authorJames Hogan <james.hogan@imgtec.com>
Tue, 14 Jun 2016 08:40:17 +0000 (09:40 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 14 Jun 2016 09:16:25 +0000 (11:16 +0200)
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>
arch/mips/kvm/emulate.c

index 2004e35288d097faa08b7361a6483da34a2e604b..ff4072c2b25e361b261b7a68aa4f648e391730e6 100644 (file)
@@ -1412,7 +1412,8 @@ enum emulation_result kvm_mips_emulate_store(u32 inst, u32 cause,
                break;
 
        default:
-               kvm_err("Store not yet supported");
+               kvm_err("Store not yet supported (inst=0x%08x)\n",
+                       inst);
                er = EMULATE_FAIL;
                break;
        }
@@ -1522,7 +1523,8 @@ enum emulation_result kvm_mips_emulate_load(u32 inst, u32 cause,
                break;
 
        default:
-               kvm_err("Load not yet supported");
+               kvm_err("Load not yet supported (inst=0x%08x)\n",
+                       inst);
                er = EMULATE_FAIL;
                break;
        }