mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-07 15:07:42 -07:00
target/i386/hvf: Variable type fixup in decoder
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>
Fixes: ff2de1668c ("i386: hvf: remove addr_t")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-ID: <20241209203629.74436-9-phil@philjordan.eu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
This commit is contained in:
parent
415aae543e
commit
40b839cb84
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue