From: Alistair Francis <Alistair.Francis@wdc.com>
To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"qemu-riscv@nongnu.org" <qemu-riscv@nongnu.org>
Cc: Alistair Francis <Alistair.Francis@wdc.com>,
"alistair23@gmail.com" <alistair23@gmail.com>,
"richard.henderson@linaro.org" <richard.henderson@linaro.org>
Subject: [Qemu-devel] [PATCH v1 00/23] Add RISC-V TCG backend support
Date: Wed, 12 Dec 2018 19:42:51 +0000 [thread overview]
Message-ID: <cover.1544643238.git.alistair.francis@wdc.com> (raw)
This patch set adds RISC-V backend support to QEMU. This is based on
Michael Clark's original work with extra work on top.
This has been somewhat tested and can run other architecture softmmu
code. It seems that any complex 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.
There are still some todos in the code (there are missing instructions
and byte swapping) but these should assert instead of generating invalid
code.
As this is all new work (so can't cause regressions) I'm starting the
patch series process with what we have so far. That way others can help
contribute and test. If anyone has strong feelings for missing functionality
let me know and we can work on adding that before this is merged.
This branch can be found here:
https://github.com/alistair23/qemu/tree/mainline/alistair/tcg-backend-upstream.next
v1:
- Fix long jump with slowpath load/stores
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 (23):
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
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 +
tcg/riscv/tcg-target.h | 175 +++
tcg/riscv/tcg-target.inc.c | 1929 +++++++++++++++++++++++++++++
10 files changed, 2278 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
next reply other threads:[~2018-12-12 19:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-12 19:42 Alistair Francis [this message]
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 01/23] elf.h: Add the RISCV ELF magic numbers Alistair Francis
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 02/23] linux-user: Add host dependency for RISC-V 32-bit Alistair Francis
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 03/23] linux-user: Add host dependency for RISC-V 64-bit Alistair Francis
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 04/23] exec: Add RISC-V GCC poison macro Alistair Francis
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 05/23] riscv: Add the tcg-target header file Alistair Francis
2018-12-12 23:23 ` Richard Henderson
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 06/23] riscv: Add the tcg target registers Alistair Francis
2018-12-12 19:43 ` [Qemu-devel] [PATCH v1 07/23] riscv: tcg-target: Add support for the constraints Alistair Francis
2018-12-12 19:44 ` [Qemu-devel] [PATCH v1 08/23] riscv: tcg-target: Add the immediate encoders Alistair Francis
2018-12-12 19:44 ` [Qemu-devel] [PATCH v1 09/23] riscv: tcg-target: Add the instruction emitters Alistair Francis
2018-12-12 19:44 ` [Qemu-devel] [PATCH v1 10/23] riscv: tcg-target: Add the relocation functions Alistair Francis
2018-12-12 19:44 ` [Qemu-devel] [PATCH v1 11/23] riscv: tcg-target: Add the mov and movi instruction Alistair Francis
2018-12-12 19:44 ` [Qemu-devel] [PATCH v1 12/23] riscv: tcg-target: Add the extract instructions Alistair Francis
2018-12-12 19:44 ` [Qemu-devel] [PATCH v1 13/23] riscv: tcg-target: Add the out load and store instructions Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 14/23] riscv: tcg-target: Add the add2 and sub2 instructions Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 15/23] riscv: tcg-target: Add branch and jump instructions Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 16/23] riscv: tcg-target: Add slowpath load and store instructions Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 17/23] riscv: tcg-target: Add direct " Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 18/23] riscv: tcg-target: Add the out op decoder Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 19/23] riscv: tcg-target: Add the prologue generation and register the JIT Alistair Francis
2018-12-12 19:45 ` [Qemu-devel] [PATCH v1 20/23] riscv: tcg-target: Add the target init code Alistair Francis
2018-12-12 19:46 ` [Qemu-devel] [PATCH v1 21/23] tcg: Add RISC-V cpu signal handler Alistair Francis
2018-12-12 19:46 ` [Qemu-devel] [PATCH v1 22/23] dias: Add RISC-V support Alistair Francis
2018-12-12 19:46 ` [Qemu-devel] [PATCH v1 23/23] configure: Add support for building RISC-V host Alistair Francis
2018-12-12 23:33 ` [Qemu-devel] [PATCH v1 00/23] Add RISC-V TCG backend support Richard Henderson
2018-12-13 0:41 ` Alistair Francis
2018-12-13 2:48 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1544643238.git.alistair.francis@wdc.com \
--to=alistair.francis@wdc.com \
--cc=alistair23@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).