All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/15]  RISC-V: Start to remove xlen preprocess
@ 2020-12-08 22:56 ` Alistair Francis
  0 siblings, 0 replies; 58+ messages in thread
From: Alistair Francis @ 2020-12-08 22:56 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: alistair.francis, bmeng.cn, palmer, alistair23

The RISC-V QEMU port currently has lot of preprocessor directives that
check if we are targetting a 32-bit or 64-bit CPU. This means that the
64-bit RISC-V target can not run 32-bit CPUs. This is different to most
other QEMU architectures and doesn't allow us to mix xlens (such as when
running Hypervisors with different xlen guests).
This series is a step toward removing some of those to allow us to use
32-bit CPUs on 64-bit RISC-V targets.
v2:
 - Rebase on the latest RISC-V tree

Alistair Francis (15):
  hw/riscv: Expand the is 32-bit check to support more CPUs
  target/riscv: Add a TYPE_RISCV_CPU_BASE CPU
  riscv: spike: Remove target macro conditionals
  riscv: virt: Remove target macro conditionals
  hw/riscv: boot: Remove compile time XLEN checks
  hw/riscv: virt: Remove compile time XLEN checks
  hw/riscv: spike: Remove compile time XLEN checks
  hw/riscv: sifive_u: Remove compile time XLEN checks
  target/riscv: fpu_helper: Match function defs in HELPER macros
  target/riscv: Add a riscv_cpu_is_32bit() helper function
  target/riscv: Specify the XLEN for CPUs
  target/riscv: cpu: Remove compile time XLEN checks
  target/riscv: cpu_helper: Remove compile time XLEN checks
  target/riscv: csr: Remove compile time XLEN checks
  target/riscv: cpu: Set XLEN independently from target

 include/hw/riscv/boot.h   |   8 +-
 include/hw/riscv/spike.h  |   6 --
 include/hw/riscv/virt.h   |   6 --
 target/riscv/cpu.h        |   8 ++
 target/riscv/cpu_bits.h   |   4 +-
 hw/riscv/boot.c           |  69 +++++++++------
 hw/riscv/sifive_u.c       |  57 ++++++------
 hw/riscv/spike.c          |  50 ++++++-----
 hw/riscv/virt.c           |  36 ++++----
 target/riscv/cpu.c        |  84 ++++++++++++------
 target/riscv/cpu_helper.c |  12 +--
 target/riscv/csr.c        | 182 ++++++++++++++++++++------------------
 target/riscv/fpu_helper.c |  16 ++--
 13 files changed, 302 insertions(+), 236 deletions(-)

-- 
2.29.2



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

end of thread, other threads:[~2020-12-15  0:27 UTC | newest]

Thread overview: 58+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 22:56 [PATCH v2 00/15] RISC-V: Start to remove xlen preprocess Alistair Francis
2020-12-08 22:56 ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 01/15] hw/riscv: Expand the is 32-bit check to support more CPUs Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 02/15] target/riscv: Add a TYPE_RISCV_CPU_BASE CPU Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 03/15] riscv: spike: Remove target macro conditionals Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 04/15] riscv: virt: " Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 05/15] hw/riscv: boot: Remove compile time XLEN checks Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 15:50   ` Richard Henderson
2020-12-09 15:50     ` Richard Henderson
2020-12-09 22:19     ` Alistair Francis
2020-12-09 22:19       ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 06/15] hw/riscv: virt: " Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 07/15] hw/riscv: spike: " Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 08/15] hw/riscv: sifive_u: " Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 09/15] target/riscv: fpu_helper: Match function defs in HELPER macros Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 15:56   ` Richard Henderson
2020-12-09 15:56     ` Richard Henderson
2020-12-09 22:22     ` Alistair Francis
2020-12-09 22:22       ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 10/15] target/riscv: Add a riscv_cpu_is_32bit() helper function Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 15:59   ` Richard Henderson
2020-12-09 15:59     ` Richard Henderson
2020-12-09 22:26     ` Alistair Francis
2020-12-09 22:26       ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 11/15] target/riscv: Specify the XLEN for CPUs Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 16:03   ` Richard Henderson
2020-12-09 16:03     ` Richard Henderson
2020-12-09 22:29     ` Alistair Francis
2020-12-09 22:29       ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 12/15] target/riscv: cpu: Remove compile time XLEN checks Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 16:03   ` Richard Henderson
2020-12-09 16:03     ` Richard Henderson
2020-12-08 22:56 ` [PATCH v2 13/15] target/riscv: cpu_helper: " Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 16:07   ` Richard Henderson
2020-12-09 16:07     ` Richard Henderson
2020-12-08 22:56 ` [PATCH v2 14/15] target/riscv: csr: " Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-09 17:34   ` Richard Henderson
2020-12-09 17:34     ` Richard Henderson
2020-12-09 22:34     ` Alistair Francis
2020-12-09 22:34       ` Alistair Francis
2020-12-08 22:56 ` [PATCH v2 15/15] target/riscv: cpu: Set XLEN independently from target Alistair Francis
2020-12-08 22:56   ` Alistair Francis
2020-12-15  0:26 ` [PATCH v2 00/15] RISC-V: Start to remove xlen preprocess Palmer Dabbelt
2020-12-15  0:26   ` Palmer Dabbelt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.