Commit 418a97afa1017a49b60dae3abb9c46d8dde1f8df
1 parent
5132455e
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
Showing
1 changed file
with
1 additions
and
1 deletions
linux-user/vm86.c
| @@ -56,7 +56,7 @@ static inline unsigned int vm_getw(uint8_t *segptr, unsigned int reg16) | @@ -56,7 +56,7 @@ static inline unsigned int vm_getw(uint8_t *segptr, unsigned int reg16) | ||
| 56 | 56 | ||
| 57 | static inline unsigned int vm_getl(uint8_t *segptr, unsigned int reg16) | 57 | static inline unsigned int vm_getl(uint8_t *segptr, unsigned int reg16) |
| 58 | { | 58 | { |
| 59 | - return tswap32(*(uint16_t *)(segptr + (reg16 & 0xffff))); | 59 | + return tswap32(*(uint32_t *)(segptr + (reg16 & 0xffff))); |
| 60 | } | 60 | } |
| 61 | 61 | ||
| 62 | void save_v86_state(CPUX86State *env) | 62 | void save_v86_state(CPUX86State *env) |