[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/15] mips: missing syscall returns wrong errno
From: |
riku . voipio |
Subject: |
[Qemu-devel] [PATCH 09/15] mips: missing syscall returns wrong errno |
Date: |
Wed, 13 Jul 2011 17:48:48 +0300 |
From: Wesley W. Terpstra <address@hidden>
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 <address@hidden>
Signed-off-by: Wesley W. Terpstra <address@hidden>
---
linux-user/main.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/linux-user/main.c b/linux-user/main.c
index d695610..e32f987 100644
--- a/linux-user/main.c
+++ b/linux-user/main.c
@@ -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;
--
1.7.4.1
- [Qemu-devel] [PATCH 00/15] v2: pending linux-user patches, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 03/15] linux-user: Add support for more VT ioctls, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 04/15] linux-user: Add support for even more FB ioctls, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 05/15] linux-user: Add syscall numbers from kernel 2.6.39.2, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 01/15] arm-semi: Provide access to CLI arguments passed through the "-append" option, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 06/15] linux-user: Implement prlimit64 syscall, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 02/15] linux-user: Add support for KD...LED ioctls, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 07/15] linux-user/syscall.c: Enforce pselect6 sigset size restrictions, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 08/15] mips: sigaltstack args, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 09/15] mips: missing syscall returns wrong errno,
riku . voipio <=
- [Qemu-devel] [PATCH 11/15] mips: rlimit incorrectly converts values, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 10/15] mips: null pointer deref should segfault, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 13/15] linux-user: correct syscall 123 on sh4, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 14/15] linux-user: make MIPS and ARM eabi use same argument reordering, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 12/15] mips: rlimit codes are not the same, riku . voipio, 2011/07/13
- [Qemu-devel] [PATCH 15/15] linux-user/signal.c: Rename s390 target_ucontext fields to fix ia64, riku . voipio, 2011/07/13