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

Richard Henderson posted 3 patches 5 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240627180350.128575-1-richard.henderson@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>, "Marc-André Lureau" <marcandre.lureau@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Thomas Huth <thuth@redhat.com>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <Alistair.Francis@wdc.com>
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 5 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 4 months, 3 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
>