aboutsummaryrefslogtreecommitdiff
path: root/linux-user/vm86.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 14:50:32 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2007-11-11 14:50:32 +0000
commit6c30b07fcc3f02321f3bb9cd9c14883751b4dc47 (patch)
treee1715bb1db2a466e72b0f6254d9bb05ea5f4ca03 /linux-user/vm86.c
parentb67419569b6a13811670d97c0bd88f9bef4ca9c7 (diff)
downloadqemu-arm-6c30b07fcc3f02321f3bb9cd9c14883751b4dc47.tar.gz
fixed error codes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3588 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/vm86.c')
-rw-r--r--linux-user/vm86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/vm86.c b/linux-user/vm86.c
index cb5ff9d75b..0667b4dd7e 100644
--- a/linux-user/vm86.c
+++ b/linux-user/vm86.c
@@ -395,7 +395,7 @@ int do_vm86(CPUX86State *env, long subfunction, abi_ulong vm86_addr)
case TARGET_VM86_GET_IRQ_BITS:
case TARGET_VM86_GET_AND_RESET_IRQ:
gemu_log("qemu: unsupported vm86 subfunction (%ld)\n", subfunction);
- ret = -EINVAL;
+ ret = -TARGET_EINVAL;
goto out;
case TARGET_VM86_PLUS_INSTALL_CHECK:
/* NOTE: on old vm86 stuff this will return the error
@@ -427,7 +427,7 @@ int do_vm86(CPUX86State *env, long subfunction, abi_ulong vm86_addr)
ts->target_v86 = vm86_addr;
if (!lock_user_struct(VERIFY_READ, target_v86, vm86_addr, 1))
- return -EFAULT;
+ return -TARGET_EFAULT;
/* build vm86 CPU state */
ts->v86flags = tswap32(target_v86->regs.eflags);
env->eflags = (env->eflags & ~SAFE_MASK) |