[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/11] i386/hvf: Print hex pairs for each opcode byte in decode e
From: |
phil |
Subject: |
[PATCH 09/11] i386/hvf: Print hex pairs for each opcode byte in decode error |
Date: |
Mon, 9 Dec 2024 21:36:27 +0100 |
From: Phil Dennis-Jordan <phil@philjordan.eu>
Printing a sequence of bytes as hex with leading zeroes omitted just looks odd.
Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
---
target/i386/hvf/x86_decode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/i386/hvf/x86_decode.c b/target/i386/hvf/x86_decode.c
index 6c7cfc820f..f8d37f2d53 100644
--- a/target/i386/hvf/x86_decode.c
+++ b/target/i386/hvf/x86_decode.c
@@ -30,7 +30,7 @@ static void decode_invalid(CPUX86State *env, struct
x86_decode *decode)
{
printf("%llx: failed to decode instruction ", env->eip);
for (int i = 0; i < decode->opcode_len; i++) {
- printf("%x ", decode->opcode[i]);
+ printf("%02x ", decode->opcode[i]);
}
printf("\n");
VM_PANIC("decoder failed\n");
--
2.39.3 (Apple Git-146)
- Re: [PATCH 02/11] arm/hvf: Initialise GICv3 state just before first vCPU run, (continued)
- [PATCH 04/11] i386/hvf: Pre-fetch emulated instructions, phil, 2024/12/09
- [PATCH 05/11] i386/hvf: Decode APIC access x86 instruction outside BQL, phil, 2024/12/09
- [PATCH 09/11] i386/hvf: Print hex pairs for each opcode byte in decode error,
phil <=
- [PATCH 07/11] i386/hvf: Enables APIC_ACCESS VM exits by setting APICBASE, phil, 2024/12/09
- [PATCH 06/11] i386/hvf: APIC access exit with fast-path for common mov cases, phil, 2024/12/09
- [PATCH 08/11] i386/hvf: Variable type fixup in decoder, phil, 2024/12/09
- [PATCH 10/11] hw/intc/apic: Fixes magic number use, removes outdated comment, phil, 2024/12/09
- [PATCH 11/11] hw/intc/apic: Raise exception when setting reserved APICBASE bits, phil, 2024/12/09