[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v10 17/26] linux-user: Add LoongArch generic header files
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [PATCH v10 17/26] linux-user: Add LoongArch generic header files |
Date: |
Tue, 16 Nov 2021 09:33:27 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
Hi,
On 11/12/21 07:54, Song Gao wrote:
> This includes:
> - sockbits.h
> - target_errno_defs.h
> - target_fcntl.h
> - termbits.h
>
> Signed-off-by: Song Gao <gaosong@loongson.cn>
> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
> ---
> linux-user/loongarch64/sockbits.h | 1 +
> linux-user/loongarch64/target_errno_defs.h | 7 +++++++
> linux-user/loongarch64/target_fcntl.h | 6 ++++++
> linux-user/loongarch64/termbits.h | 1 +
> 4 files changed, 15 insertions(+)
> create mode 100644 linux-user/loongarch64/sockbits.h
> create mode 100644 linux-user/loongarch64/target_errno_defs.h
> create mode 100644 linux-user/loongarch64/target_fcntl.h
> create mode 100644 linux-user/loongarch64/termbits.h
>
> diff --git a/linux-user/loongarch64/sockbits.h
> b/linux-user/loongarch64/sockbits.h
> new file mode 100644
> index 0000000..0e4c8f0
> --- /dev/null
> +++ b/linux-user/loongarch64/sockbits.h
> @@ -0,0 +1 @@
Why not guarding the header here, ...
> +#include "../generic/sockbits.h"
> diff --git a/linux-user/loongarch64/target_errno_defs.h
> b/linux-user/loongarch64/target_errno_defs.h
> new file mode 100644
> index 0000000..17165c1
> --- /dev/null
> +++ b/linux-user/loongarch64/target_errno_defs.h
> @@ -0,0 +1,7 @@
> +#ifndef LOONGARCH_TARGET_ERRNO_DEFS_H
> +#define LOONGARCH_TARGET_ERRNO_DEFS_H
... but guard this one?
> +
> +/* Target uses generic errno */
> +#include "../generic/target_errno_defs.h"
> +
> +#endif
New files require a license. I'd recommend adding a SPDX
tag in the first line. For example with GPLv2+:
/* SPDX-License-Identifier: GPL-2.0-or-later */
- Re: [PATCH v10 04/26] target/loongarch: Add fixed point arithmetic instruction translation, (continued)
- [PATCH v10 10/26] target/loongarch: Add floating point arithmetic instruction translation, Song Gao, 2021/11/12
- [PATCH v10 07/26] target/loongarch: Add fixed point load/store instruction translation, Song Gao, 2021/11/12
- [PATCH v10 08/26] target/loongarch: Add fixed point atomic instruction translation, Song Gao, 2021/11/12
- [PATCH v10 13/26] target/loongarch: Add floating point move instruction translation, Song Gao, 2021/11/12
- [PATCH v10 14/26] target/loongarch: Add floating point load/store instruction translation, Song Gao, 2021/11/12
- [PATCH v10 02/26] target/loongarch: Add core definition, Song Gao, 2021/11/12
- [PATCH v10 15/26] target/loongarch: Add branch instruction translation, Song Gao, 2021/11/12
- [PATCH v10 06/26] target/loongarch: Add fixed point bit instruction translation, Song Gao, 2021/11/12
- [PATCH v10 17/26] linux-user: Add LoongArch generic header files, Song Gao, 2021/11/12
- Re: [PATCH v10 17/26] linux-user: Add LoongArch generic header files,
Philippe Mathieu-Daudé <=
- [PATCH v10 19/26] linux-user: Add LoongArch signal support, Song Gao, 2021/11/12
- [PATCH v10 22/26] linux-user: Add LoongArch cpu_loop support, Song Gao, 2021/11/12
- [PATCH v10 24/26] target/loongarch: Add target build suport, Song Gao, 2021/11/12
- [PATCH v10 23/26] default-configs: Add loongarch linux-user support, Song Gao, 2021/11/12
- [PATCH v10 18/26] linux-user: Add LoongArch specific structures, Song Gao, 2021/11/12
- [PATCH v10 16/26] target/loongarch: Add disassembler, Song Gao, 2021/11/12
- [PATCH v10 25/26] target/loongarch: 'make check-tcg' support, Song Gao, 2021/11/12