aboutsummaryrefslogtreecommitdiff
path: root/linux-user/vm86.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-16 15:12:51 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-05-16 15:12:51 +0000
commit418a97afa1017a49b60dae3abb9c46d8dde1f8df (patch)
tree51dd6f1b11d8968993f3be607af29d4a97afc505 /linux-user/vm86.c
parent5132455efe7555d707041fecb48be5bdcba7acf5 (diff)
fixed 32 bit popf/iret emulation in vm86 mode
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@177 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/vm86.c')
-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)