From: Paul Brook <paul@codesourcery.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [patch] Arm hwcaps
Date: Fri, 16 Sep 2005 17:59:49 +0100 [thread overview]
Message-ID: <200509161759.50348.paul@codesourcery.com> (raw)
[-- 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
reply other threads:[~2005-09-16 17:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200509161759.50348.paul@codesourcery.com \
--to=paul@codesourcery.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).