linux-user/hppa: 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>
This commit is contained in:
Richard Henderson
2025-08-28 06:39:25 +10:00
parent 084b3247a0
commit eaf983e04b
3 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -1046,7 +1046,7 @@ static inline void init_thread(struct target_pt_regs *regs,
#define ELF_CLASS ELFCLASS32
#define ELF_ARCH EM_PARISC
#define ELF_PLATFORM "PARISC"
#define ELF_PLATFORM get_elf_platform(thread_cpu)
#define STACK_GROWS_DOWN 0
#define STACK_ALIGNMENT 64
+5
View File
@@ -9,3 +9,8 @@ const char *get_elf_cpu_model(uint32_t eflags)
{
return "hppa";
}
const char *get_elf_platform(CPUState *cs)
{
return "PARISC";
}
+2
View File
@@ -8,4 +8,6 @@
#ifndef HPPA_TARGET_ELF_H
#define HPPA_TARGET_ELF_H
#define HAVE_ELF_PLATFORM 1
#endif