[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 16/18] linux-user/elfload: Expose get_elf_hwcap() on s390x
From: |
Thomas Huth |
Subject: |
[PULL 16/18] linux-user/elfload: Expose get_elf_hwcap() on s390x |
Date: |
Tue, 6 Jun 2023 07:56:19 +0200 |
From: Ilya Leoshkevich <iii@linux.ibm.com>
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>
---
linux-user/loader.h | 4 ++++
linux-user/elfload.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/linux-user/loader.h b/linux-user/loader.h
index f375ee0679..ad6ca9dbe3 100644
--- a/linux-user/loader.h
+++ b/linux-user/loader.h
@@ -56,4 +56,8 @@ abi_long memcpy_to_target(abi_ulong dest, const void *src,
extern unsigned long guest_stack_size;
+#ifdef TARGET_S390X
+uint32_t get_elf_hwcap(void);
+#endif
+
#endif /* LINUX_USER_LOADER_H */
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index 418ad92598..49ec9ccc94 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -1583,7 +1583,7 @@ static inline void init_thread(struct target_pt_regs
*regs,
#define GET_FEATURE(_feat, _hwcap) \
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.
--
2.31.1
- [PULL 08/18] target/s390x: Fix MXDB and MXDBR, (continued)
- [PULL 08/18] target/s390x: Fix MXDB and MXDBR, Thomas Huth, 2023/06/06
- [PULL 10/18] tests/qtest: Run ipmi-bt-test only if CONFIG_IPMI_EXTERN is set, Thomas Huth, 2023/06/06
- [PULL 11/18] gitlab-ci: Remove unused Python package, Thomas Huth, 2023/06/06
- [PULL 09/18] tests/tcg/s390x: Test MXDB and MXDBR, Thomas Huth, 2023/06/06
- [PULL 13/18] scripts: Add qom-cast-macro-clean-cocci-gen.py, Thomas Huth, 2023/06/06
- [PULL 12/18] hw/mips/malta: Fix the malta machine on big endian hosts, Thomas Huth, 2023/06/06
- [PULL 14/18] bulk: Remove pointless QOM casts, Thomas Huth, 2023/06/06
- [PULL 15/18] s390x/tcg: Fix CPU address returned by STIDP, Thomas Huth, 2023/06/06
- [PULL 16/18] linux-user/elfload: Expose get_elf_hwcap() on s390x,
Thomas Huth <=
- [PULL 18/18] linux-user: Emulate /proc/cpuinfo on s390x, Thomas Huth, 2023/06/06
- [PULL 17/18] linux-user/elfload: Introduce elf_hwcap_str() on s390x, Thomas Huth, 2023/06/06
- Re: [PULL 00/18] s390x and misc patches, Richard Henderson, 2023/06/06