diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2025-07-28 09:00:52 -1000 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2025-08-28 06:39:25 +1000 |
| commit | 084b3247a08da16c541efba059c308b0d9299bdc (patch) | |
| tree | 2649db44b532c6d36d57dc6a288e290ff29d8459 /linux-user/elfload.c | |
| parent | d6b8c5dbd9b0fd05c3f8ac9427729082eecb9fbb (diff) | |
| download | focaccia-qemu-084b3247a08da16c541efba059c308b0d9299bdc.tar.gz focaccia-qemu-084b3247a08da16c541efba059c308b0d9299bdc.zip | |
linux-user/loongarch64: Create get_elf_platform
Move the string literal to a new function. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/elfload.c')
| -rw-r--r-- | linux-user/elfload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 0e41737cf1..9d61feae30 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -665,7 +665,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, #define USE_ELF_CORE_DUMP #define ELF_EXEC_PAGESIZE 4096 -#define ELF_PLATFORM "loongarch" +#define ELF_PLATFORM get_elf_platform(thread_cpu) #endif /* TARGET_LOONGARCH64 */ |