qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-8.2 0/7] target/riscv: add 'max' CPU type
@ 2023-07-12 19:01 Daniel Henrique Barboza
  2023-07-12 19:01 ` [PATCH for-8.2 1/7] target/riscv/cpu.c: split CPU options from riscv_cpu_extensions[] Daniel Henrique Barboza
                   ` (6 more replies)
  0 siblings, 7 replies; 36+ messages in thread
From: Daniel Henrique Barboza @ 2023-07-12 19:01 UTC (permalink / raw)
  To: qemu-devel
  Cc: qemu-riscv, alistair.francis, bmeng, liweiwei, zhiwei_liu, palmer,
	Daniel Henrique Barboza

Hi,

Following the discussions made in [1] I decided to go ahead and implement
the 'max' CPU type.

It's a CPU that has (almost) all ratified non-vendor extensions enabled
by default. Tooling such as libvirt uses this kind of CPU to do capabilities
discovery. It's also used for testing purposes.

To implement this CPU I did some cleanups in the riscv_cpu_extensions[]
array. After this series this array contains only ratified extensions.
This is a preliminary step for future changes we're planning to do in
the CPU modelling in QEMU, including 'profile' support.

Daniel Henrique Barboza (7):
  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 vendor exts from riscv_cpu_extensions[]
  target/riscv/cpu.c: split non-ratified exts from
    riscv_cpu_extensions[]
  target/riscv/cpu.c: add a ADD_CPU_PROPERTIES_ARRAY() macro
  target/riscv: add 'max' CPU type
  avocado, risc-v: add opensbi tests for 'max' CPU

 target/riscv/cpu-qom.h         |   1 +
 target/riscv/cpu.c             | 106 ++++++++++++++++++++++++++-------
 tests/avocado/riscv_opensbi.py |  16 +++++
 3 files changed, 103 insertions(+), 20 deletions(-)

-- 
2.41.0



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

end of thread, other threads:[~2023-07-19 16:19 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-12 19:01 [PATCH for-8.2 0/7] target/riscv: add 'max' CPU type Daniel Henrique Barboza
2023-07-12 19:01 ` [PATCH for-8.2 1/7] target/riscv/cpu.c: split CPU options from riscv_cpu_extensions[] Daniel Henrique Barboza
2023-07-12 19:01 ` [PATCH for-8.2 2/7] target/riscv/cpu.c: skip 'bool' check when filtering KVM props Daniel Henrique Barboza
2023-07-12 19:01 ` [PATCH for-8.2 3/7] target/riscv/cpu.c: split vendor exts from riscv_cpu_extensions[] Daniel Henrique Barboza
2023-07-12 19:01 ` [PATCH for-8.2 4/7] target/riscv/cpu.c: split non-ratified " Daniel Henrique Barboza
2023-07-12 19:01 ` [PATCH for-8.2 5/7] target/riscv/cpu.c: add a ADD_CPU_PROPERTIES_ARRAY() macro Daniel Henrique Barboza
2023-07-12 19:01 ` [PATCH for-8.2 6/7] target/riscv: add 'max' CPU type Daniel Henrique Barboza
2023-07-12 19:22   ` Conor Dooley
2023-07-12 20:30     ` Daniel Henrique Barboza
2023-07-12 21:00       ` Conor Dooley
2023-07-12 21:09         ` Daniel Henrique Barboza
2023-07-12 21:35           ` Conor Dooley
2023-07-12 21:39             ` Daniel Henrique Barboza
2023-07-12 22:14               ` Conor Dooley
2023-07-13 22:12                 ` Boot failure after QEMU's upgrade to OpenSBI v1.3 (was Re: [PATCH for-8.2 6/7] target/riscv: add 'max' CPU type) Conor Dooley
2023-07-13 22:35                   ` Daniel Henrique Barboza
2023-07-13 22:47                     ` Conor Dooley
2023-07-14  1:13                       ` Daniel Henrique Barboza
2023-07-14  3:12                         ` Alistair Francis
2023-07-14  9:26                           ` Daniel Henrique Barboza
2023-07-13 23:04                   ` Conor Dooley
2023-07-14  4:30                   ` Anup Patel
2023-07-14 10:19                     ` Conor Dooley
2023-07-14 12:28                       ` Conor Dooley
2023-07-15  9:12                         ` Atish Patra
2023-07-19  1:32                           ` Alistair Francis
2023-07-19  5:39                             ` Anup Patel
2023-07-19  9:53                               ` Alistair Francis
2023-07-19 15:21                                 ` Anup Patel
2023-07-19 15:45                                   ` Bin Meng
2023-07-19 16:10                                     ` Anup Patel
2023-07-19 16:18                                       ` Bin Meng
2023-07-19 16:17                                     ` Andreas Schwab
2023-07-19  7:07                             ` Conor Dooley
2023-07-14 12:35                       ` Anup Patel
2023-07-12 19:01 ` [PATCH for-8.2 7/7] avocado, risc-v: add opensbi tests for 'max' CPU Daniel Henrique Barboza

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).