qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC v3 00/24]  Add RISC-V TCG backend support
@ 2018-12-08  0:46 Alistair Francis
  2018-12-08  0:46 ` [Qemu-devel] [RFC v3 01/24] elf.h: Add the RISCV ELF magic numbers Alistair Francis
                   ` (24 more replies)
  0 siblings, 25 replies; 36+ messages in thread
From: Alistair Francis @ 2018-12-08  0:46 UTC (permalink / raw)
  To: qemu-devel@nongnu.org, qemu-riscv@nongnu.org
  Cc: Alistair Francis, alistair23@gmail.com,
	richard.henderson@linaro.org

This patch set adds RISC-V backend support to QEMU. This is based on
Michael Clark's original work with extra work ontop.

This has been somewhat tested and can run other architecture softmmu
code. It seems like any OS will eventually hang, but we can run the BIOS
and OS startup code for a number of different operating systems.

I haven't tested linux user support at all yet. I think Michael had that
working reliably though and hopefully my changes haven't broken it. I'll
have to test it before I send a full patchset.

There are still some todos in the code (there are missing instructions
and byte swapping). I think this series will have to be rebased ontop of
Richard's TCG work before merging (although maybe we can get this in and
then work on the rebase).

This branch can be found here:
https://github.com/alistair23/qemu/tree/mainline/alistair/tcg-backend-upstream.next

The working version with Michael's orignal patch and work ontop can be
found here:
https://github.com/alistair23/qemu/tree/mainline/alistair/tcg-backend.next

RFC v3:
 - Update the MAINTAINERS file
 - Enusre that RISC-V 32-bit works
 - More changes based on Richard's feedback and contributions
RFC v2:
 - A large number of changes based on Richard's feedback

Alistair Francis (24):
  elf.h: Add the RISCV ELF magic numbers
  linux-user: Add host dependency for RISC-V 32-bit
  linux-user: Add host dependency for RISC-V 64-bit
  linux-user: riscv: Fix compile failure on riscv32 hosts
  exec: Add RISC-V GCC poison macro
  riscv: Add the tcg-target header file
  riscv: Add the tcg target registers
  riscv: tcg-target: Add support for the constraints
  riscv: tcg-target: Add the immediate encoders
  riscv: tcg-target: Add the instruction emitters
  riscv: tcg-target: Add the relocation functions
  riscv: tcg-target: Add the mov and movi instruction
  riscv: tcg-target: Add the extract instructions
  riscv: tcg-target: Add the out load and store instructions
  riscv: tcg-target: Add the add2 and sub2 instructions
  riscv: tcg-target: Add branch and jump instructions
  riscv: tcg-target: Add slowpath load and store instructions
  riscv: tcg-target: Add direct load and store instructions
  riscv: tcg-target: Add the out op decoder
  riscv: tcg-target: Add the prologue generation and register the JIT
  riscv: tcg-target: Add the target init code
  tcg: Add RISC-V cpu signal handler
  dias: Add RISC-V support
  configure: Add support for building RISC-V host

 MAINTAINERS                       |    3 +
 accel/tcg/user-exec.c             |   75 ++
 configure                         |   12 +-
 disas.c                           |   10 +-
 include/elf.h                     |   55 +
 include/exec/poison.h             |    1 +
 linux-user/host/riscv32/hostdep.h |   11 +
 linux-user/host/riscv64/hostdep.h |   11 +
 linux-user/riscv/target_syscall.h |    5 +
 tcg/riscv/tcg-target.h            |  175 +++
 tcg/riscv/tcg-target.inc.c        | 1927 +++++++++++++++++++++++++++++
 11 files changed, 2281 insertions(+), 4 deletions(-)
 create mode 100644 linux-user/host/riscv32/hostdep.h
 create mode 100644 linux-user/host/riscv64/hostdep.h
 create mode 100644 tcg/riscv/tcg-target.h
 create mode 100644 tcg/riscv/tcg-target.inc.c

-- 
2.19.1

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

end of thread, other threads:[~2018-12-12  2:51 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-12-08  0:46 [Qemu-devel] [RFC v3 00/24] Add RISC-V TCG backend support Alistair Francis
2018-12-08  0:46 ` [Qemu-devel] [RFC v3 01/24] elf.h: Add the RISCV ELF magic numbers Alistair Francis
2018-12-08  0:46 ` [Qemu-devel] [RFC v3 02/24] linux-user: Add host dependency for RISC-V 32-bit Alistair Francis
2018-12-08  0:46 ` [Qemu-devel] [RFC v3 03/24] linux-user: Add host dependency for RISC-V 64-bit Alistair Francis
2018-12-08  0:46 ` [Qemu-devel] [RFC v3 04/24] linux-user: riscv: Fix compile failure on riscv32 hosts Alistair Francis
2018-12-10 17:04   ` Richard Henderson
2018-12-12  0:20     ` Alistair Francis
2018-12-08  0:46 ` [Qemu-devel] [RFC v3 05/24] exec: Add RISC-V GCC poison macro Alistair Francis
2018-12-08  0:47 ` [Qemu-devel] [RFC v3 06/24] riscv: Add the tcg-target header file Alistair Francis
2018-12-08  0:47 ` [Qemu-devel] [RFC v3 07/24] riscv: Add the tcg target registers Alistair Francis
2018-12-08  0:47 ` [Qemu-devel] [RFC v3 08/24] riscv: tcg-target: Add support for the constraints Alistair Francis
2018-12-12  2:27   ` Richard Henderson
2018-12-08  0:47 ` [Qemu-devel] [RFC v3 09/24] riscv: tcg-target: Add the immediate encoders Alistair Francis
2018-12-08  0:47 ` [Qemu-devel] [RFC v3 10/24] riscv: tcg-target: Add the instruction emitters Alistair Francis
2018-12-08  0:47 ` [Qemu-devel] [RFC v3 11/24] riscv: tcg-target: Add the relocation functions Alistair Francis
2018-12-08  0:48 ` [Qemu-devel] [RFC v3 12/24] riscv: tcg-target: Add the mov and movi instruction Alistair Francis
2018-12-08  0:48 ` [Qemu-devel] [RFC v3 13/24] riscv: tcg-target: Add the extract instructions Alistair Francis
2018-12-08  0:48 ` [Qemu-devel] [RFC v3 14/24] riscv: tcg-target: Add the out load and store instructions Alistair Francis
2018-12-08  0:48 ` [Qemu-devel] [RFC v3 15/24] riscv: tcg-target: Add the add2 and sub2 instructions Alistair Francis
2018-12-10 17:28   ` Richard Henderson
2018-12-12  2:51   ` Richard Henderson
2018-12-08  0:48 ` [Qemu-devel] [RFC v3 16/24] riscv: tcg-target: Add branch and jump instructions Alistair Francis
2018-12-08  0:48 ` [Qemu-devel] [RFC v3 17/24] riscv: tcg-target: Add slowpath load and store instructions Alistair Francis
2018-12-10 17:38   ` Richard Henderson
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 18/24] riscv: tcg-target: Add direct " Alistair Francis
2018-12-10 17:43   ` Richard Henderson
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 19/24] riscv: tcg-target: Add the out op decoder Alistair Francis
2018-12-10 17:56   ` Richard Henderson
2018-12-11 22:44     ` Richard Henderson
2018-12-12  0:04       ` Alistair Francis
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 20/24] riscv: tcg-target: Add the prologue generation and register the JIT Alistair Francis
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 21/24] riscv: tcg-target: Add the target init code Alistair Francis
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 22/24] tcg: Add RISC-V cpu signal handler Alistair Francis
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 23/24] dias: Add RISC-V support Alistair Francis
2018-12-08  0:49 ` [Qemu-devel] [RFC v3 24/24] configure: Add support for building RISC-V host Alistair Francis
2018-12-08  2:13 ` [Qemu-devel] [RFC v3 00/24] Add RISC-V TCG backend support no-reply

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