From 6c30b07fcc3f02321f3bb9cd9c14883751b4dc47 Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 11 Nov 2007 14:50:32 +0000 Subject: [PATCH] fixed error codes git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3588 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/vm86.c | 4 ++-- 1 file 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) |