target/i386: emulate: include name of unhandled instruction
Instead of just the command number, include the instruction name to make debugging easier. Signed-off-by: Mohamed Mediouni <mohamed@unpredictable.fr> Link: https://lore.kernel.org/r/20260407141809.16862-2-mohamed@unpredictable.fr Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Mohamed Mediouni committed
Apr 7, 2026 at 16:17 UTC
9d46d35abd79b7efd135ff384a4a0d86abf423f1
1 file changed
+2
-2
target/i386/emulate/x86_emu.c
+2
-2
@@ -1399,8 +1399,8 @@ static void init_cmd_handler(void)
1399
bool exec_instruction(CPUX86State *env, struct x86_decode *ins)
1400
{
1401
if (!_cmd_handler[ins->cmd].handler) {
1402
- printf("Unimplemented handler (" TARGET_FMT_lx ") for %d (%x %x)\n",
1403
- env->eip,
1402
+ printf("Unimplemented handler (" TARGET_FMT_lx ") for %s - %d (%x %x)\n",
1403
+ env->eip, decode_cmd_to_string(ins->cmd),
1404
ins->cmd, ins->opcode[0],
1405
ins->opcode_len > 1 ? ins->opcode[1] : 0);
1406
env->eip += ins->len;