Do cpu feature detection in util, like other hosts.
Support the OpenBSD ucontext_t.
Support the Linux __riscv_hwprobe syscall.
r~
Richard Henderson (3):
util/cpuinfo-riscv: Support host/cpuinfo.h for riscv
util/cpuinfo-riscv: Support OpenBSD signal frame
util/cpuinfo-riscv: Use linux __riscv_hwprobe syscall
meson.build | 6 ++
host/include/riscv/host/cpuinfo.h | 23 ++++++
tcg/riscv/tcg-target.h | 46 ++++++------
util/cpuinfo-riscv.c | 118 ++++++++++++++++++++++++++++++
tcg/riscv/tcg-target.c.inc | 84 ++-------------------
util/meson.build | 2 +
6 files changed, 178 insertions(+), 101 deletions(-)
create mode 100644 host/include/riscv/host/cpuinfo.h
create mode 100644 util/cpuinfo-riscv.c