Received: from eggs.gnu.org ([2001:4830:134:3::10]:45370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYmHa-0006lH-3m for qemu-devel@nongnu.org; Sun, 06 Sep 2015 22:35:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZYmHW-0003VL-RH for qemu-devel@nongnu.org; Sun, 06 Sep 2015 22:35:45 -0400 Received: from smtpbg302.qq.com ([184.105.206.27]:46136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZYmHW-0003Ox-JG for qemu-devel@nongnu.org; Sun, 06 Sep 2015 22:35:42 -0400 Sender: gang.chen.5i5j@qq.com From: gang.chen.5i5j@gmail.com Date: Mon, 7 Sep 2015 10:35:06 +0800 Message-Id: <1441593306-3334-1-git-send-email-gang.chen.5i5j@gmail.com> Subject: [Qemu-devel] [PATCH] linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: riku.voipio@iki.fi, rth@twiddle.net Cc: peter.maydell@linaro.org, Chen Gang , agraf@suse.de, xili_gchen_5257@hotmail.com, qemu-devel@nongnu.org From: Chen Gang Under Alpha host, EAGAIN is redefined to 35, so it need be remapped too. Signed-off-by: Chen Gang --- linux-user/syscall.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index f62c698..380f5a8 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -457,6 +457,7 @@ static uint16_t target_to_host_errno_table[ERRNO_TABLE_SIZE] = { * minus the errnos that are not actually generic to all archs. */ static uint16_t host_to_target_errno_table[ERRNO_TABLE_SIZE] = { + [EAGAIN] = TARGET_EAGAIN, [EIDRM] = TARGET_EIDRM, [ECHRNG] = TARGET_ECHRNG, [EL2NSYNC] = TARGET_EL2NSYNC, -- 1.7.3.4