[Qemu-devel] [PATCH for 4.1 v2 0/6] RISC-V: Allow specifying CPU ISA via command line

Alistair Francis posted 6 patches 5 years ago
Test docker-mingw@fedora passed
Test docker-clang@ubuntu failed
Test checkpatch passed
Test asan passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1553899050.git.alistair.francis@wdc.com
Maintainers: Palmer Dabbelt <palmer@sifive.com>, Alistair Francis <Alistair.Francis@wdc.com>, Riku Voipio <riku.voipio@iki.fi>, Bastian Koppelmann <kbastian@mail.uni-paderborn.de>, Sagar Karandikar <sagark@eecs.berkeley.edu>, Laurent Vivier <laurent@vivier.eu>
There is a newer version of this series
hw/riscv/spike.c              | 106 ++++++++++++++++++++++++-
hw/riscv/virt.c               |   3 +-
linux-user/riscv/target_elf.h |   1 +
target/riscv/cpu.c            | 141 +++++++++++++++++++++++++++++++++-
target/riscv/cpu.h            |  12 ++-
5 files changed, 256 insertions(+), 7 deletions(-)
[Qemu-devel] [PATCH for 4.1 v2 0/6] RISC-V: Allow specifying CPU ISA via command line
Posted by Alistair Francis 5 years ago
This patch series adds a generic RISC-V CPU that can be generated at run
time based on the ISA string specified to QEMU via the -cpu argument. This
is supported on the virt and spike boards allowing users to specify the
RISC-V extensions as well as the ISA version.

As part of the conversion we have deprecated the version specifi Spike
machines.

v2:
 - Keep the any CPU for linux-user

Alistair Francis (6):
  linux-user/riscv: Add the CPU type as a comment
  target/riscv: Fall back to generating a RISC-V CPU
  target/riscv: Create settable CPU properties
  riscv: virt: Allow specifying a CPU via commandline
  target/riscv: Remove the generic no MMU CPUs
  riscv: Add a generic spike machine

 hw/riscv/spike.c              | 106 ++++++++++++++++++++++++-
 hw/riscv/virt.c               |   3 +-
 linux-user/riscv/target_elf.h |   1 +
 target/riscv/cpu.c            | 141 +++++++++++++++++++++++++++++++++-
 target/riscv/cpu.h            |  12 ++-
 5 files changed, 256 insertions(+), 7 deletions(-)

-- 
2.21.0