aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/vm86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/vm86.c b/linux-user/vm86.c
index e4f9b85c84..885762c069 100644
--- a/linux-user/vm86.c
+++ b/linux-user/vm86.c
@@ -56,7 +56,7 @@ static inline unsigned int vm_getw(uint8_t *segptr, unsigned int reg16)
static inline unsigned int vm_getl(uint8_t *segptr, unsigned int reg16)
{
- return tswap32(*(uint16_t *)(segptr + (reg16 & 0xffff)));
+ return tswap32(*(uint32_t *)(segptr + (reg16 & 0xffff)));
}
void save_v86_state(CPUX86State *env)