mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -9,3 +9,8 @@ const char *get_elf_cpu_model(uint32_t eflags)
|
||||
{
|
||||
return "hppa";
|
||||
}
|
||||
|
||||
const char *get_elf_platform(CPUState *cs)
|
||||
{
|
||||
return "PARISC";
|
||||
}
|
||||
|
||||
@@ -8,4 +8,6 @@
|
||||
#ifndef HPPA_TARGET_ELF_H
|
||||
#define HPPA_TARGET_ELF_H
|
||||
|
||||
#define HAVE_ELF_PLATFORM 1
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user