[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v9 01/31] elf: Add machine type value for LoongArch
From: |
WANG Xuerui |
Subject: |
[PATCH v9 01/31] elf: Add machine type value for LoongArch |
Date: |
Tue, 14 Dec 2021 16:01:24 +0800 |
This is already officially allocated as recorded in GNU binutils
repo [1], and the description is updated in [2]. Add to enable further
work.
[1]:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=4cf2ad720078a9f490dd5b5bc8893a926479196e
[2]:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=01a8c731aacbdbed0eb5682d13cc074dc7e25fb3
Signed-off-by: WANG Xuerui <git@xen0n.name>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
include/elf.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/elf.h b/include/elf.h
index 811bf4a1cb..3a4bcb646a 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -182,6 +182,8 @@ typedef struct mips_elf_abiflags_v0 {
#define EM_NANOMIPS 249 /* Wave Computing nanoMIPS */
+#define EM_LOONGARCH 258 /* LoongArch */
+
/*
* This is an interim value that we will use until the committee comes
* up with a final number.
--
2.34.0
- [PATCH v9 00/31] LoongArch64 port of QEMU TCG, WANG Xuerui, 2021/12/14
- [PATCH v9 01/31] elf: Add machine type value for LoongArch,
WANG Xuerui <=
- [PATCH v9 03/31] tcg/loongarch64: Add the tcg-target.h file, WANG Xuerui, 2021/12/14
- [PATCH v9 02/31] MAINTAINERS: Add tcg/loongarch64 entry with myself as maintainer, WANG Xuerui, 2021/12/14
- [PATCH v9 04/31] tcg/loongarch64: Add generated instruction opcodes and encoding helpers, WANG Xuerui, 2021/12/14
- [PATCH v9 06/31] tcg/loongarch64: Define the operand constraints, WANG Xuerui, 2021/12/14
- [PATCH v9 07/31] tcg/loongarch64: Implement necessary relocation operations, WANG Xuerui, 2021/12/14
- [PATCH v9 05/31] tcg/loongarch64: Add register names, allocation order and input/output sets, WANG Xuerui, 2021/12/14
- [PATCH v9 08/31] tcg/loongarch64: Implement the memory barrier op, WANG Xuerui, 2021/12/14
- [PATCH v9 10/31] tcg/loongarch64: Implement goto_ptr, WANG Xuerui, 2021/12/14