[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 30/31] configure, meson.build: Mark support for loongarch64 hosts
From: |
Richard Henderson |
Subject: |
[PULL 30/31] configure, meson.build: Mark support for loongarch64 hosts |
Date: |
Tue, 21 Dec 2021 08:47:36 -0800 |
From: WANG Xuerui <git@xen0n.name>
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>
Message-Id: <20211221054105.178795-31-git@xen0n.name>
Signed-off-by: Richard Henderson <richard.henderson@linaro.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.25.1
- [PULL 11/31] tcg/loongarch64: Implement sign-/zero-extension ops, (continued)
- [PULL 11/31] tcg/loongarch64: Implement sign-/zero-extension ops, Richard Henderson, 2021/12/21
- [PULL 23/31] tcg/loongarch64: Add softmmu load/store helpers, implement qemu_ld/qemu_st ops, Richard Henderson, 2021/12/21
- [PULL 20/31] tcg/loongarch64: Implement setcond ops, Richard Henderson, 2021/12/21
- [PULL 26/31] tcg/loongarch64: Implement tcg_target_init, Richard Henderson, 2021/12/21
- [PULL 08/31] tcg/loongarch64: Implement the memory barrier op, Richard Henderson, 2021/12/21
- [PULL 22/31] tcg/loongarch64: Implement simple load/store ops, Richard Henderson, 2021/12/21
- [PULL 10/31] tcg/loongarch64: Implement goto_ptr, Richard Henderson, 2021/12/21
- [PULL 24/31] tcg/loongarch64: Implement tcg_target_qemu_prologue, Richard Henderson, 2021/12/21
- [PULL 29/31] linux-user: Implement CPU-specific signal handler for loongarch64 hosts, Richard Henderson, 2021/12/21
- [PULL 28/31] common-user: Add safe syscall handling for loongarch64 hosts, Richard Henderson, 2021/12/21
- [PULL 30/31] configure, meson.build: Mark support for loongarch64 hosts,
Richard Henderson <=
- [PULL 31/31] tests/docker: Add gentoo-loongarch64-cross image and run cross builds in GitLab, Richard Henderson, 2021/12/21
- [PULL 21/31] tcg/loongarch64: Implement tcg_out_call, Richard Henderson, 2021/12/21
- [PULL 27/31] tcg/loongarch64: Register the JIT, Richard Henderson, 2021/12/21
- [PULL 25/31] tcg/loongarch64: Implement exit_tb/goto_tb, Richard Henderson, 2021/12/21