qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 07/12] linux-user: Add syscall handling for A


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH v2 07/12] linux-user: Add syscall handling for AArch64
Date: Tue, 30 Apr 2013 13:52:35 +0100

On 30 April 2013 07:38, John Rigby <address@hidden> wrote:
> From: Alexander Graf <address@hidden>
>
> The AArch64 syscall definitions are all publicly available in the Linux
> kernel. Let's add them to our linux-user emulation target, so that we
> can easily handle AArch64 syscalls.
>
> Signed-off-by: Alexander Graf <address@hidden>
> ---
>  linux-user/arm/syscall_nr.h |  326 
> +++++++++++++++++++++++++++++++++++++++++++
>  linux-user/main.c           |   15 ++
>  2 files changed, 341 insertions(+)
>
> diff --git a/linux-user/arm/syscall_nr.h b/linux-user/arm/syscall_nr.h
> index 42d6855..5703def 100644
> --- a/linux-user/arm/syscall_nr.h
> +++ b/linux-user/arm/syscall_nr.h
> @@ -2,6 +2,8 @@
>   * This file contains the system call numbers.
>   */
>
> +#ifndef TARGET_AARCH64
> +
>  #define TARGET_NR_restart_syscall              (  0)
>  #define TARGET_NR_exit                 (  1)
>  #define TARGET_NR_fork                 (  2)
> @@ -378,3 +380,327 @@
>  #define TARGET_NR_open_by_handle_at            (371)
>  #define TARGET_NR_clock_adjtime                (372)
>  #define TARGET_NR_syncfs                       (373)
> +
> +#else /* !TARGET_AARCH64 */
> +

My comments on v1 still apply here -- just put the aarch64
ABI related defines in their own linux-user/aarch64 directory
and make configure set ABI appropriately.

-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]