[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Add EAGAIN to host_to_tar
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH] linux-user/syscall.c: Add EAGAIN to host_to_target_errno_table for |
Date: |
Tue, 8 Sep 2015 17:21:15 +0100 |
On 7 September 2015 at 03:35, <address@hidden> wrote:
> From: Chen Gang <address@hidden>
>
> Under Alpha host, EAGAIN is redefined to 35, so it need be remapped too.
>
> Signed-off-by: Chen Gang <address@hidden>
> ---
> 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,
Reviewed-by: Peter Maydell <address@hidden>
thanks
-- PMM