Commit afce2927aac2a668edcaa4ef6d025b87cd8e0cd5
1 parent
bd6ea3c8
Arm AT_HWCAP AUXV entry (Paul Brook)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1590 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
22 additions
and
0 deletions
linux-user/elfload.c
... | ... | @@ -91,6 +91,28 @@ static inline void init_thread(struct target_pt_regs *regs, struct image_info *i |
91 | 91 | #define USE_ELF_CORE_DUMP |
92 | 92 | #define ELF_EXEC_PAGESIZE 4096 |
93 | 93 | |
94 | +#define DLINFO_ARCH_ITEMS 1 | |
95 | +enum | |
96 | +{ | |
97 | + ARM_HWCAP_ARM_SWP = 1 << 0, | |
98 | + ARM_HWCAP_ARM_HALF = 1 << 1, | |
99 | + ARM_HWCAP_ARM_THUMB = 1 << 2, | |
100 | + ARM_HWCAP_ARM_26BIT = 1 << 3, | |
101 | + ARM_HWCAP_ARM_FAST_MULT = 1 << 4, | |
102 | + ARM_HWCAP_ARM_FPA = 1 << 5, | |
103 | + ARM_HWCAP_ARM_VFP = 1 << 6, | |
104 | + ARM_HWCAP_ARM_EDSP = 1 << 7, | |
105 | +}; | |
106 | + | |
107 | +#define ARM_HWCAPS (ARM_HWCAP_ARM_SWP | ARM_HWCAP_ARM_HALF \ | |
108 | + | ARM_HWCAP_ARM_THUMB | ARM_HWCAP_ARM_FAST_MULT \ | |
109 | + | ARM_HWCAP_ARM_FPA | ARM_HWCAP_ARM_VFP) | |
110 | + | |
111 | +#define ARCH_DLINFO \ | |
112 | +do { \ | |
113 | + NEW_AUX_ENT(AT_HWCAP, ARM_HWCAPS); \ | |
114 | +} while (0) | |
115 | + | |
94 | 116 | #endif |
95 | 117 | |
96 | 118 | #ifdef TARGET_SPARC | ... | ... |