[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 3/3] linux-user: define correct UTS machine n
From: |
Peter Maydell |
Subject: |
Re: [Qemu-devel] [PATCH v2 3/3] linux-user: define correct UTS machine name for hppa |
Date: |
Wed, 25 Jan 2017 22:49:29 +0000 |
On 25 January 2017 at 21:56, Laurent Vivier <address@hidden> wrote:
> the correct UTS machine name (as expected by systemd) is "parisc",
> not "hppa".
>
> Signed-off-by: Laurent Vivier <address@hidden>
> ---
> linux-user/uname.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/linux-user/uname.c b/linux-user/uname.c
> index 313b79d..daad002 100644
> --- a/linux-user/uname.c
> +++ b/linux-user/uname.c
> @@ -63,6 +63,8 @@ const char *cpu_to_uname_machine(void *cpu_env)
> return "i586";
> }
> return "i686";
> +#elif defined(TARGET_HPPA)
> + return "parisc";
> #else
> /* default is #define-d in each arch/ subdir */
> return UNAME_MACHINE;
This function is for when the uname string has to be
determined at runtime. If this target has a fixed
string, then you should just set UNAME_MACHINE correctly
in linux-user/$ARCH/target_syscall.h.
thanks
-- PMM