OSDN Git Service

linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for
authorChen Gang <gang.chen.5i5j@gmail.com>
Mon, 7 Sep 2015 02:35:06 +0000 (10:35 +0800)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 28 Sep 2015 13:57:54 +0000 (16:57 +0300)
Under Alpha host, EAGAIN is redefined to 35, so it need be remapped too.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/syscall.c

index 9528344..98b5766 100644 (file)
@@ -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,