This patch set has been floating around since June. Peter Maydell has reviewed most of it.
r~ The following changes since commit 7dc65c02fe3fb8f3146ce0b9ff5fec5945329f0e: Open 2.0 development tree (2013-11-27 14:02:45 -0800) are available in the git repository at: git://github.com/rth7680/qemu.git auxv-2 for you to fetch changes up to 0b959cf5e4cce08ed96bd7832447e1543cd3622f: linux-user: Use qemu_getauxval for AT_EXECFD (2013-11-30 07:48:46 +1300) ---------------------------------------------------------------- Richard Henderson (6): osdep: Create qemu_getauxval and qemu_init_auxval tcg-ppc64: Use qemu_getauxval tcg-arm: Use qemu_getauxval tcg-s390: Use qemu_getauxval in query_facilities util: Use qemu_getauxval in linux qemu_cache_utils_init linux-user: Use qemu_getauxval for AT_EXECFD include/elf.h | 73 +++++++++++++++++++++++++++++++++++ include/qemu/cache-utils.h | 4 +- include/qemu/osdep.h | 25 ++++++++++++ linux-user/main.c | 35 ++++------------- tcg/arm/tcg-target.c | 14 +++---- tcg/ppc64/tcg-target.c | 11 +----- tcg/s390/tcg-target.c | 95 ++++++---------------------------------------- util/Makefile.objs | 1 + util/cache-utils.c | 51 ++++++++++--------------- util/getauxval.c | 74 ++++++++++++++++++++++++++++++++++++ vl.c | 3 +- 11 files changed, 224 insertions(+), 162 deletions(-) create mode 100644 util/getauxval.c