mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-11-05 20:35:44 +00:00
linux-user/elfload: Expose get_elf_hwcap() on s390x
It is required for implementing /proc/cpuinfo emulation. Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com> Message-Id: <20230605113950.1169228-3-iii@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
71b11cbe1c
commit
e1b819c804
2 changed files with 5 additions and 1 deletions
|
@ -1583,7 +1583,7 @@ static inline void init_thread(struct target_pt_regs *regs,
|
||||||
#define GET_FEATURE(_feat, _hwcap) \
|
#define GET_FEATURE(_feat, _hwcap) \
|
||||||
do { if (s390_has_feat(_feat)) { hwcap |= _hwcap; } } while (0)
|
do { if (s390_has_feat(_feat)) { hwcap |= _hwcap; } } while (0)
|
||||||
|
|
||||||
static uint32_t get_elf_hwcap(void)
|
uint32_t get_elf_hwcap(void)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
* Let's assume we always have esan3 and zarch.
|
* Let's assume we always have esan3 and zarch.
|
||||||
|
|
|
@ -56,4 +56,8 @@ abi_long memcpy_to_target(abi_ulong dest, const void *src,
|
||||||
|
|
||||||
extern unsigned long guest_stack_size;
|
extern unsigned long guest_stack_size;
|
||||||
|
|
||||||
|
#ifdef TARGET_S390X
|
||||||
|
uint32_t get_elf_hwcap(void);
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* LINUX_USER_LOADER_H */
|
#endif /* LINUX_USER_LOADER_H */
|
||||||
|
|
Loading…
Reference in a new issue