[PATCH 0/3] Add some missing cache infomation

Richard Henderson rth@twiddle.net
Thu Jun 8 22:57:00 GMT 2017


I was looking to use _SC_LEVEL1_ICACHE_LINESIZE in QEMU,
and notice that some of our common hosts are missing this
information.

For my purposes, a guess at the linesize is good enough,
and I can't imagine that returning the linesize used for
flushing the cache could be incorrect.


r~


Richard Henderson (3):
  Guess L1 cache linesize for aarch64
  Add hidden_proto for getauxval
  Add cache info for powerpc64

 include/sys/auxv.h                                 |  2 +
 misc/getauxval.c                                   |  1 +
 sysdeps/unix/sysv/linux/aarch64/sysconf.c          | 55 +++++++++++++
 .../unix/sysv/linux/powerpc/powerpc64/sysconf.c    | 90 ++++++++++++++++++++++
 4 files changed, 148 insertions(+)
 create mode 100644 sysdeps/unix/sysv/linux/aarch64/sysconf.c
 create mode 100644 sysdeps/unix/sysv/linux/powerpc/powerpc64/sysconf.c

-- 
2.9.4



More information about the Libc-alpha mailing list