aboutsummaryrefslogtreecommitdiff
path: root/linux-user/loongarch64
diff options
context:
space:
mode:
authorSong Gao <gaosong@loongson.cn>2022-06-24 11:10:39 +0800
committerRichard Henderson <richard.henderson@linaro.org>2022-07-04 11:08:57 +0530
commit3418fe25fa9c37fb5428758a234e527af0735e1a (patch)
treea566c6cff9d6e50943d0e31247406e9ba8da9e1d /linux-user/loongarch64
parent9d5cd6587a70d613087a284763d44ff6fe798149 (diff)
linux-user: Add LoongArch elf support
Signed-off-by: Song Gao <gaosong@loongson.cn> Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20220624031049.1716097-4-gaosong@loongson.cn> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/loongarch64')
-rw-r--r--linux-user/loongarch64/target_elf.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/linux-user/loongarch64/target_elf.h b/linux-user/loongarch64/target_elf.h
new file mode 100644
index 0000000000..95c3f05a46
--- /dev/null
+++ b/linux-user/loongarch64/target_elf.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: GPL-2.0-or-later */
+/*
+ * Copyright (c) 2021 Loongson Technology Corporation Limited
+ */
+
+#ifndef LOONGARCH_TARGET_ELF_H
+#define LOONGARCH_TARGET_ELF_H
+static inline const char *cpu_get_model(uint32_t eflags)
+{
+ return "la464";
+}
+#endif