qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v6 00/12] riscv: add 'max' CPU, deprecate 'any'
@ 2023-07-27 22:09 Daniel Henrique Barboza
  2023-07-27 22:09 ` [PATCH v6 01/12] target/riscv/cpu.c: split CPU options from riscv_cpu_extensions[] Daniel Henrique Barboza
                   ` (11 more replies)
  0 siblings, 12 replies; 23+ messages in thread
From: Daniel Henrique Barboza @ 2023-07-27 22:09 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, alistair.francis, bmeng, liweiwei, zhiwei_liu, palmer,
	Daniel Henrique Barboza

Hi,

I decided to spin a new version of this work after chatting with Conor
about some log messages about 'vector version is not specified' message
when using the 'max' CPU.

For this particular CPU we should set an appropriate value for the vector
version right at cpu_init(), but doing that isn't enough to avoid that
log message. A new patch (9) was added to tune in RVV validation code to
skip the message if a CPU already set env->vext_ver.

Patches missing acks: 9, 11, 12

Changes from v6:
- patch 9 (new)
  - change RVV vext_ver handling to avoid msg logs if the CPU sets a
    specific env->vext_ver
- patch 10 (former 9)
  - set env->vext_ver in riscv_init_max_cpu_extensions()
- v5 link: https://lore.kernel.org/qemu-riscv/20230720171933.404398-1-dbarboza@ventanamicro.com/

Daniel Henrique Barboza (12):
  target/riscv/cpu.c: split CPU options from riscv_cpu_extensions[]
  target/riscv/cpu.c: skip 'bool' check when filtering KVM props
  target/riscv/cpu.c: split kvm prop handling to its own helper
  target/riscv/cpu.c: del DEFINE_PROP_END_OF_LIST() from
    riscv_cpu_extensions
  target/riscv/cpu.c: split vendor exts from riscv_cpu_extensions[]
  target/riscv/cpu.c: split non-ratified exts from
    riscv_cpu_extensions[]
  target/riscv/cpu.c: add ADD_CPU_QDEV_PROPERTIES_ARRAY() macro
  target/riscv/cpu.c: add ADD_UNAVAIL_KVM_PROP_ARRAY() macro
  target/riscv/cpu.c: limit cfg->vext_spec log message
  target/riscv: add 'max' CPU type
  avocado, risc-v: add opensbi tests for 'max' CPU
  target/riscv: deprecate the 'any' CPU type

 docs/about/deprecated.rst      |  12 +++
 target/riscv/cpu-qom.h         |   1 +
 target/riscv/cpu.c             | 188 +++++++++++++++++++++++++--------
 tests/avocado/riscv_opensbi.py |  16 +++
 4 files changed, 171 insertions(+), 46 deletions(-)

-- 
2.41.0



^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2023-08-15 17:26 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-27 22:09 [PATCH v6 00/12] riscv: add 'max' CPU, deprecate 'any' Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 01/12] target/riscv/cpu.c: split CPU options from riscv_cpu_extensions[] Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 02/12] target/riscv/cpu.c: skip 'bool' check when filtering KVM props Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 03/12] target/riscv/cpu.c: split kvm prop handling to its own helper Daniel Henrique Barboza
2023-08-10 17:42   ` Alistair Francis
2023-07-27 22:09 ` [PATCH v6 04/12] target/riscv/cpu.c: del DEFINE_PROP_END_OF_LIST() from riscv_cpu_extensions Daniel Henrique Barboza
2023-08-10 17:49   ` Alistair Francis
2023-08-15 12:43     ` Daniel Henrique Barboza
2023-08-15 13:15       ` Peter Maydell
2023-08-15 17:25         ` Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 05/12] target/riscv/cpu.c: split vendor exts from riscv_cpu_extensions[] Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 06/12] target/riscv/cpu.c: split non-ratified " Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 07/12] target/riscv/cpu.c: add ADD_CPU_QDEV_PROPERTIES_ARRAY() macro Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 08/12] target/riscv/cpu.c: add ADD_UNAVAIL_KVM_PROP_ARRAY() macro Daniel Henrique Barboza
2023-07-27 22:09 ` [PATCH v6 09/12] target/riscv/cpu.c: limit cfg->vext_spec log message Daniel Henrique Barboza
2023-07-28  1:02   ` Weiwei Li
2023-08-10 17:54   ` Alistair Francis
2023-07-27 22:09 ` [PATCH v6 10/12] target/riscv: add 'max' CPU type Daniel Henrique Barboza
2023-08-10 17:56   ` Alistair Francis
2023-07-27 22:09 ` [PATCH v6 11/12] avocado, risc-v: add opensbi tests for 'max' CPU Daniel Henrique Barboza
2023-08-10 17:56   ` Alistair Francis
2023-07-27 22:09 ` [PATCH v6 12/12] target/riscv: deprecate the 'any' CPU type Daniel Henrique Barboza
2023-08-10 17:51   ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).