[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/11] i386/hvf: Variable type fixup in decoder
From: |
phil |
Subject: |
[PATCH 08/11] i386/hvf: Variable type fixup in decoder |
Date: |
Mon, 9 Dec 2024 21:36:26 +0100 |
From: Phil Dennis-Jordan <phil@philjordan.eu>
decode_bytes reads 1, 2, 4, or 8 bytes at a time. The destination
variable should therefore be a uint64_t, not a target_ulong.
Signed-off-by: Phil Dennis-Jordan <phil@philjordan.eu>
---
target/i386/hvf/x86_decode.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/i386/hvf/x86_decode.c b/target/i386/hvf/x86_decode.c
index 79dfc30408..6c7cfc820f 100644
--- a/target/i386/hvf/x86_decode.c
+++ b/target/i386/hvf/x86_decode.c
@@ -61,8 +61,8 @@ uint64_t sign(uint64_t val, int size)
static inline uint64_t decode_bytes(CPUX86State *env, struct x86_decode
*decode,
int size)
{
- target_ulong val = 0;
-
+ uint64_t val = 0;
+
switch (size) {
case 1:
case 2:
--
2.39.3 (Apple Git-146)
- [PATCH 00/11] hvf and APIC fixes, improvements, and optimisations, phil, 2024/12/09
- [PATCH 02/11] arm/hvf: Initialise GICv3 state just before first vCPU run, phil, 2024/12/09
- [PATCH 01/11] hvf: Add facility for initialisation code prior to first vCPU run, phil, 2024/12/09
- [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 08/11] i386/hvf: Variable type fixup in decoder,
phil <=
- [PATCH 07/11] i386/hvf: Enables APIC_ACCESS VM exits by setting APICBASE, phil, 2024/12/09
- [PATCH 09/11] i386/hvf: Print hex pairs for each opcode byte in decode error, phil, 2024/12/09
- [PATCH 03/11] i386/hvf: Don't send signal to thread when kicking, phil, 2024/12/09