提交 7c2f6157 编写于 作者: W Wesley W. Terpstra 提交者: Riku Voipio

mips: missing syscall returns wrong errno

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: NRiku Voipio <riku.voipio@linaro.org>
Signed-off-by: NWesley W. Terpstra <terpstra@debian.org>
上级 053ebb27
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册