Skip to content

Translation loop conversion for riscv

Michael Clark qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target/riscv: avoid integer overflow in next_page PC checktarget/riscv/translate.c+3 -30 replies
2/6translator: merge max_insns into DisasContextBaseaccel/tcg/translator.c include/exec/translator.h target/alpha/translate.c +5 more+28 -430 replies
3/6target/riscv: convert to DisasJumpTypetarget/riscv/translate.c+28 -440 replies
4/6target/riscv: convert to DisasContextBasetarget/riscv/translate.c+64 -650 replies
5/6target/riscv: convert to TranslatorOpstarget/riscv/translate.c+80 -780 replies
6/6target/riscv: add misa to DisasContexttarget/riscv/translate.c+42 -350 replies

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonMichael ClarkBastian Koppelmann
1/6R-b R-b A-b
2/6R-b
3/6R-b R-b
4/6R-b
5/6R-b
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH v1 0/6] Translation loop conversion for riscv

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 <[email protected]>
Cc Sagar Karandikar <[email protected]>
Cc Bastian Koppelmann <[email protected]>
Cc Alistair Francis <[email protected]>
Cc Emilio G. Cota <[email protected]>

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(-)
Signature · 1 line
2.7.0