[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v11 30/31] configure, meson.build: Mark support for loongarch64 h
From: |
WANG Xuerui |
Subject: |
[PATCH v11 30/31] configure, meson.build: Mark support for loongarch64 hosts |
Date: |
Tue, 21 Dec 2021 13:41:04 +0800 |
Example output of `uname -a` on an initial Gentoo LA64 port, running
the upstream submission version of Linux (with some very minor patches
not influencing output here):
> Linux <hostname> 5.14.0-10342-g37a00851b145 #5 SMP PREEMPT Tue Aug 10
> 12:56:24 PM CST 2021 loongarch64 GNU/Linux
And the same on the vendor-supplied Loongnix 20 system, with an early
in-house port of Linux, and using the old-world ABI:
> Linux <hostname> 4.19.167-rc5.lnd.1-loongson-3 #1 SMP Sat Apr 17 07:32:32 UTC
> 2021 loongarch64 loongarch64 loongarch64 GNU/Linux
So a name of "loongarch64" matches both, fortunately.
Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
configure | 5 +++++
meson.build | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/configure b/configure
index 8ccfe51673..9724631609 100755
--- a/configure
+++ b/configure
@@ -631,6 +631,8 @@ elif check_define __arm__ ; then
cpu="arm"
elif check_define __aarch64__ ; then
cpu="aarch64"
+elif check_define __loongarch64 ; then
+ cpu="loongarch64"
else
cpu=$(uname -m)
fi
@@ -3719,6 +3721,9 @@ if test "$linux" = "yes" ; then
aarch64)
linux_arch=arm64
;;
+ loongarch*)
+ linux_arch=loongarch
+ ;;
mips64)
linux_arch=mips
;;
diff --git a/meson.build b/meson.build
index f45ecf31bd..6d7c02bad7 100644
--- a/meson.build
+++ b/meson.build
@@ -56,7 +56,7 @@ python = import('python').find_installation()
supported_oses = ['windows', 'freebsd', 'netbsd', 'openbsd', 'darwin',
'sunos', 'linux']
supported_cpus = ['ppc', 'ppc64', 's390x', 'riscv', 'x86', 'x86_64',
- 'arm', 'aarch64', 'mips', 'mips64', 'sparc', 'sparc64']
+ 'arm', 'aarch64', 'loongarch64', 'mips', 'mips64', 'sparc', 'sparc64']
cpu = host_machine.cpu_family()
--
2.34.0
- [PATCH v11 19/31] tcg/loongarch64: Implement br/brcond ops, (continued)
- [PATCH v11 19/31] tcg/loongarch64: Implement br/brcond ops, WANG Xuerui, 2021/12/21
- [PATCH v11 20/31] tcg/loongarch64: Implement setcond ops, WANG Xuerui, 2021/12/21
- [PATCH v11 15/31] tcg/loongarch64: Implement clz/ctz ops, WANG Xuerui, 2021/12/21
- [PATCH v11 16/31] tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops, WANG Xuerui, 2021/12/21
- [PATCH v11 22/31] tcg/loongarch64: Implement simple load/store ops, WANG Xuerui, 2021/12/21
- [PATCH v11 23/31] tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops, WANG Xuerui, 2021/12/21
- [PATCH v11 28/31] common-user: Add safe syscall handling for loongarch64 hosts, WANG Xuerui, 2021/12/21
- [PATCH v11 24/31] tcg/loongarch64: Implement tcg_target_qemu_prologue, WANG Xuerui, 2021/12/21
- [PATCH v11 26/31] tcg/loongarch64: Implement tcg_target_init, WANG Xuerui, 2021/12/21
- [PATCH v11 27/31] tcg/loongarch64: Register the JIT, WANG Xuerui, 2021/12/21
- [PATCH v11 30/31] configure, meson.build: Mark support for loongarch64 hosts,
WANG Xuerui <=
- [PATCH v11 25/31] tcg/loongarch64: Implement exit_tb/goto_tb, WANG Xuerui, 2021/12/21
- [PATCH v11 29/31] linux-user: Implement CPU-specific signal handler for loongarch64 hosts, WANG Xuerui, 2021/12/21
- [PATCH v11 31/31] tests/docker: Add gentoo-loongarch64-cross image and run cross builds in GitLab, WANG Xuerui, 2021/12/21
- Re: [PATCH v11 00/31] LoongArch64 port of QEMU TCG, Philippe Mathieu-Daudé, 2021/12/21
- Re: [PATCH v11 00/31] LoongArch64 port of QEMU TCG, Richard Henderson, 2021/12/21