This is the riscv subset of Emilio G. Cota's translation loop
conversion patches forward ported to master, with a patch from
https://github.com/riscv/riscv-qemu/tree/qemu-2.13-for-upstream
The last patch in the series adds misa to DisasContext and
removes CPURISCVState from gen methods. The intention is to
add additional patches to this series to check for the misa
M, A, F and D extensions in multiply/divide, atomics, single
and double precision floating point methods to throw illegal
instruction exceptions for extensions that are not enabled.
The first step is to move misa into DisasContext.
The misa change has been rebased against Emilio G. Cota's
translation loop series so that target/riscv/translate.c
merges can be done more easily and so that patches can be
moved between trees.
Cc: Palmer Dabbelt <palmer@sifive.com>
Cc: Sagar Karandikar <sagark@eecs.berkeley.edu>
Cc: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
Cc: Alistair Francis <Alistair.Francis@wdc.com>
Cc: Emilio G. Cota <cota@braap.org>
Signed-off-by: Michael Clark <mjc@sifive.com>
Emilio G. Cota (5):
target/riscv: avoid integer overflow in next_page PC check
translator: merge max_insns into DisasContextBase
target/riscv: convert to DisasJumpType
target/riscv: convert to DisasContextBase
target/riscv: convert to TranslatorOps
Michael Clark (1):
target/riscv: add misa to DisasContext
accel/tcg/translator.c | 21 ++-
include/exec/translator.h | 8 +-
target/alpha/translate.c | 6 +-
target/arm/translate-a64.c | 8 +-
target/arm/translate.c | 11 +-
target/hppa/translate.c | 7 +-
target/i386/translate.c | 5 +-
target/ppc/translate.c | 5 +-
target/riscv/translate.c | 326 ++++++++++++++++++++++-----------------------
9 files changed, 187 insertions(+), 210 deletions(-)
--
2.7.0