]> git.proxmox.com Git - qemu.git/commitdiff
mips: missing syscall returns wrong errno
authorWesley W. Terpstra <terpstra@debian.org>
Tue, 12 Jul 2011 11:33:23 +0000 (14:33 +0300)
committerRiku Voipio <riku.voipio@linaro.org>
Tue, 12 Jul 2011 11:33:23 +0000 (14:33 +0300)
Return -TARGET_ENOSYS instead of -ENOSYS from linux-user/main.c
   * Caused strange 'Level 2 synchronization messages' instead of
correctly reporting the syscall was missing.
   * Made glibc simply fail instead of using older syscalls

Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
Signed-off-by: Wesley W. Terpstra <terpstra@debian.org>
linux-user/main.c

index d695610349b79a8a418096731fc95e71d98595f6..e32f9877868f79cf2f5f5dc0dd82b34afa67bf6a 100644 (file)
@@ -2080,7 +2080,7 @@ void cpu_loop(CPUMIPSState *env)
             syscall_num = env->active_tc.gpr[2] - 4000;
             env->active_tc.PC += 4;
             if (syscall_num >= sizeof(mips_syscall_args)) {
-                ret = -ENOSYS;
+                ret = -TARGET_ENOSYS;
             } else {
                 int nb_args;
                 abi_ulong sp_reg;