mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06:00
linux-user: Move get_ppc64_abi
The get_ppc64_abi is used to determine the ELF ABI (i.e. V1 or V2). This routine is currently implemented in the linux-user/elfload.c file but is useful in other scenarios. Move the routine to a more generally available location (linux-user/ppc/target_cpu.h). Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
This commit is contained in:
parent
d4290c40a4
commit
67d6d829cd
2 changed files with 10 additions and 9 deletions
|
@ -38,4 +38,14 @@ static inline void cpu_set_tls(CPUPPCState *env, target_ulong newtls)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifndef EF_PPC64_ABI
|
||||
#define EF_PPC64_ABI 0x3
|
||||
#endif
|
||||
|
||||
static inline uint32_t get_ppc64_abi(struct image_info *infop)
|
||||
{
|
||||
return infop->elf_flags & EF_PPC64_ABI;
|
||||
}
|
||||
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue