aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2025-08-14 08:40:38 +0200
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2025-09-02 17:57:05 +0200
commit14ab44b96d5bf761af81cc723314ef5ecf73ed17 (patch)
treeea3e0fdadf1105188c05971f9bae5fd4e5a27b32
parent831d75fd735dbd116703d3a1ca5e271dc930ebae (diff)
downloadqemu-14ab44b96d5bf761af81cc723314ef5ecf73ed17.zip
qemu-14ab44b96d5bf761af81cc723314ef5ecf73ed17.tar.gz
qemu-14ab44b96d5bf761af81cc723314ef5ecf73ed17.tar.bz2
elf: Add EF_MIPS_ARCH_ASE definitions
Include MIPS ASE ELF definitions from binutils: https://sourceware.org/git/?p=binutils-gdb.git;a=blob;f=include/elf/mips.h;h=4fc190f404d828ded84e621bfcece5fa9f9c23c8;hb=HEAD#l210 Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250814070650.78657-2-philmd@linaro.org>
-rw-r--r--include/elf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h
index e7259ec..bbfac05 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -56,6 +56,13 @@ typedef int64_t Elf64_Sxword;
#define EF_MIPS_ARCH_32R6 0x90000000 /* MIPS32r6 code. */
#define EF_MIPS_ARCH_64R6 0xa0000000 /* MIPS64r6 code. */
+/* MIPS Architectural Extensions. */
+#define EF_MIPS_ARCH_ASE 0x0f000000
+
+#define EF_MIPS_ARCH_ASE_MICROMIPS 0x02000000
+#define EF_MIPS_ARCH_ASE_M16 0x04000000
+#define EF_MIPS_ARCH_ASE_MDMX 0x08000000
+
/* The ABI of a file. */
#define EF_MIPS_ABI_O32 0x00001000 /* O32 ABI. */
#define EF_MIPS_ABI_O64 0x00002000 /* O32 extended for 64 bit. */