* [Qemu-devel] [patch] Arm hwcaps
@ 2005-09-16 16:59 Paul Brook
0 siblings, 0 replies; only message in thread
From: Paul Brook @ 2005-09-16 16:59 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 137 bytes --]
The attached patch implements the Arm AT_HWCAP AUXV entry. This allows libc to
determine what CPU instruction sets are available.
Paul
[-- Attachment #2: patch.qemu_hwcap --]
[-- Type: text/x-diff, Size: 1166 bytes --]
Index: linux-user/elfload.c
===================================================================
RCS file: /cvsroot/qemu/qemu/linux-user/elfload.c,v
retrieving revision 1.27
diff -u -p -r1.27 elfload.c
--- linux-user/elfload.c 21 Aug 2005 10:12:28 -0000 1.27
+++ linux-user/elfload.c 16 Sep 2005 16:40:03 -0000
@@ -91,6 +91,28 @@ static inline void init_thread(struct ta
#define USE_ELF_CORE_DUMP
#define ELF_EXEC_PAGESIZE 4096
+#define DLINFO_ARCH_ITEMS 1
+enum
+{
+ ARM_HWCAP_ARM_SWP = 1 << 0,
+ ARM_HWCAP_ARM_HALF = 1 << 1,
+ ARM_HWCAP_ARM_THUMB = 1 << 2,
+ ARM_HWCAP_ARM_26BIT = 1 << 3,
+ ARM_HWCAP_ARM_FAST_MULT = 1 << 4,
+ ARM_HWCAP_ARM_FPA = 1 << 5,
+ ARM_HWCAP_ARM_VFP = 1 << 6,
+ ARM_HWCAP_ARM_EDSP = 1 << 7,
+};
+
+#define ARM_HWCAPS (ARM_HWCAP_ARM_SWP | ARM_HWCAP_ARM_HALF \
+ | ARM_HWCAP_ARM_THUMB | ARM_HWCAP_ARM_FAST_MULT \
+ | ARM_HWCAP_ARM_FPA | ARM_HWCAP_ARM_VFP)
+
+#define ARCH_DLINFO \
+do { \
+ NEW_AUX_ENT(AT_HWCAP, ARM_HWCAPS); \
+} while (0)
+
#endif
#ifdef TARGET_SPARC
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-09-16 17:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-16 16:59 [Qemu-devel] [patch] Arm hwcaps Paul Brook
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.