Commit 6c30b07fcc3f02321f3bb9cd9c14883751b4dc47

Authored by bellard
1 parent b6741956

fixed error codes


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3588 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 2 additions and 2 deletions
linux-user/vm86.c
... ... @@ -395,7 +395,7 @@ int do_vm86(CPUX86State *env, long subfunction, abi_ulong vm86_addr)
395 395 case TARGET_VM86_GET_IRQ_BITS:
396 396 case TARGET_VM86_GET_AND_RESET_IRQ:
397 397 gemu_log("qemu: unsupported vm86 subfunction (%ld)\n", subfunction);
398   - ret = -EINVAL;
  398 + ret = -TARGET_EINVAL;
399 399 goto out;
400 400 case TARGET_VM86_PLUS_INSTALL_CHECK:
401 401 /* 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)
427 427  
428 428 ts->target_v86 = vm86_addr;
429 429 if (!lock_user_struct(VERIFY_READ, target_v86, vm86_addr, 1))
430   - return -EFAULT;
  430 + return -TARGET_EFAULT;
431 431 /* build vm86 CPU state */
432 432 ts->v86flags = tswap32(target_v86->regs.eflags);
433 433 env->eflags = (env->eflags & ~SAFE_MASK) |
... ...