[PATCH 0/3] util: Add cpuinfo support for riscv

Richard Henderson posted 3 patches 6 months ago
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
[PATCH 0/3] util: Add cpuinfo support for riscv
Posted by Richard Henderson 6 months ago
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

-- 
2.34.1
Re: [PATCH 0/3] util: Add cpuinfo support for riscv
Posted by Richard Henderson 5 months, 4 weeks ago
Ping, particularly from the riscv folk.
I'm keen to get on Brad's *BSD patches in my next PR.

r~

On 6/27/24 11:03, Richard Henderson wrote:
> 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
>