[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v10 30/31] configure, meson.build: Mark support for loongarch64 h
From: |
WANG Xuerui |
Subject: |
[PATCH v10 30/31] configure, meson.build: Mark support for loongarch64 hosts |
Date: |
Wed, 15 Dec 2021 20:51:35 +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 | 7 ++++++-
meson.build | 2 +-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure b/configure
index 48c21775f3..23c366a69a 100755
--- a/configure
+++ b/configure
@@ -581,6 +581,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
@@ -589,7 +591,7 @@ ARCH=
# Normalise host CPU name and set ARCH.
# Note that this case should only have supported host CPUs, not guests.
case "$cpu" in
- ppc|ppc64|s390x|sparc64|x32|riscv)
+ ppc|ppc64|s390x|sparc64|x32|riscv|loongarch64)
;;
ppc64le)
ARCH="ppc64"
@@ -3770,6 +3772,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 e425129011..d0cd85601c 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 v10 16/31] tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops, (continued)
- [PATCH v10 16/31] tcg/loongarch64: Implement shl/shr/sar/rotl/rotr ops, WANG Xuerui, 2021/12/15
- [PATCH v10 26/31] tcg/loongarch64: Implement tcg_target_init, WANG Xuerui, 2021/12/15
- [PATCH v10 17/31] tcg/loongarch64: Implement add/sub ops, WANG Xuerui, 2021/12/15
- [PATCH v10 20/31] tcg/loongarch64: Implement setcond ops, WANG Xuerui, 2021/12/15
- [PATCH v10 21/31] tcg/loongarch64: Implement tcg_out_call, WANG Xuerui, 2021/12/15
- [PATCH v10 23/31] tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops, WANG Xuerui, 2021/12/15
- [PATCH v10 25/31] tcg/loongarch64: Implement exit_tb/goto_tb, WANG Xuerui, 2021/12/15
- [PATCH v10 19/31] tcg/loongarch64: Implement br/brcond ops, WANG Xuerui, 2021/12/15
- [PATCH v10 28/31] common-user: Add safe syscall handling for loongarch64 hosts, WANG Xuerui, 2021/12/15
- [PATCH v10 30/31] configure, meson.build: Mark support for loongarch64 hosts,
WANG Xuerui <=
- [PATCH v10 31/31] tests/docker: Add gentoo-loongarch64-cross image and run cross builds in GitLab, WANG Xuerui, 2021/12/15
- [PATCH v10 29/31] linux-user: Implement CPU-specific signal handler for loongarch64 hosts, WANG Xuerui, 2021/12/15
- [PATCH v10 27/31] tcg/loongarch64: Register the JIT, WANG Xuerui, 2021/12/15
- [PATCH v10 14/31] tcg/loongarch64: Implement bswap{16,32,64} ops, WANG Xuerui, 2021/12/15
- [PATCH v10 24/31] tcg/loongarch64: Implement tcg_target_qemu_prologue, WANG Xuerui, 2021/12/15
- [PATCH v10 22/31] tcg/loongarch64: Implement simple load/store ops, WANG Xuerui, 2021/12/15