Skip to content

Translation loop conversion for sh4/sparc/mips/s390x/openrisc/riscv targets

Emilio G. Cota qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest18 patches 7 repliesIn review
  2. v217 patches 31 repliesSuperseded
  3. v114 patches 16 repliesSuperseded

Changes in v3 from the cover letter

- Rebase onto v2.12.0-rc4

- Add R-b's

- mips:
+ Fix comment typo s/intetrupt/interrupt/
+ Fixes suggested by Richard:
- use lookup_and_goto_ptr for BS_STOP (add a separate patch for this)
- use DISAS_NORETURN in generate_exception_err
- define and use DISAS_EXIT

- riscv:
+ Rename ctx->pc_tmp to ctx->pc_succ_insn, as suggested by Bastian.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/18translator: merge max_insns into DisasContextBaseaccel/tcg/translator.c include/exec/translator.h target/alpha/translate.c +5 more+27 -421 reply
2/18target/sh4: convert to TranslatorOpstarget/sh4/translate.c+86 -850 replies
3/18target/sparc: convert to DisasJumpTypetarget/sparc/translate.c+15 -120 replies
4/18target/sparc: convert to DisasContextBasetarget/sparc/translate.c+45 -470 replies
5/18target/sparc: convert to TranslatorOpstarget/sparc/translate.c+86 -880 replies
6/18target/mips: use lookup_and_goto_ptr on BS_STOPtarget/mips/translate.c+2 -11 reply
7/18target/mips: convert to DisasJumpTypetarget/mips/translate.c+93 -952 replies
8/18target/mips: convert to DisasContextBasetarget/mips/translate.c+175 -1710 replies
9/18target/mips: use *ctx for DisasContexttarget/mips/translate.c+83 -820 replies
10/18target/mips: convert to TranslatorOpstarget/mips/translate.c+113 -1141 reply
11/18target/s390x: convert to DisasJumpTypetarget/s390x/translate.c+632 -6350 replies
12/18target/s390x: convert to DisasContextBasetarget/s390x/translate.c+76 -720 replies
13/18target/s390x: convert to TranslatorOpstarget/s390x/translate.c+80 -820 replies
14/18target/openrisc: convert to DisasContextBasetarget/openrisc/translate.c+46 -471 reply
15/18target/openrisc: convert to TranslatorOpstarget/openrisc/translate.c+79 -840 replies
16/18target/riscv: convert to DisasJumpTypetarget/riscv/translate.c+28 -440 replies
17/18target/riscv: convert to DisasContextBasetarget/riscv/translate.c+64 -650 replies
18/18target/riscv: convert to TranslatorOpstarget/riscv/translate.c+80 -781 reply

Reviews trailers per patch

All 18 patches have a Reviewed-by or Acked-by.

PatchRichard HendersonMark Cave-AylandPhilippe Mathieu-DaudéCornelia HuckDavid HildenbrandBastian KoppelmannMichael Clark
1/18R-b R-b
2/18R-b
3/18R-b
4/18R-b
5/18R-b T-b
6/18R-b
7/18R-b R-b
8/18R-b R-b
9/18R-b R-b
10/18R-b
11/18R-b A-b R-b
12/18R-b A-b R-b
13/18R-b A-b R-b T-b
14/18R-b R-b
15/18R-b
16/18R-b R-b
17/18R-b
18/18R-b R-b

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

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 00/18] Translation loop conversion for sh4/sparc/mips/s390x/openrisc/riscv targets

v2: https://lists.nongnu.org/archive/html/qemu-devel/2018-04/msg00837.html

Changes from v2:

- Rebase onto v2.12.0-rc4

- Add R-b's

- mips:
+ Fix comment typo s/intetrupt/interrupt/
+ Fixes suggested by Richard:
- use lookup_and_goto_ptr for BS_STOP (add a separate patch for this)
- use DISAS_NORETURN in generate_exception_err
- define and use DISAS_EXIT

- riscv:
+ Rename ctx->pc_tmp to ctx->pc_succ_insn, as suggested by Bastian.

You can fetch the tree from:
https://github.com/cota/qemu/tree/trloop-conv-v3

Note that the changes in this series depend on this other branch:
https://github.com/cota/qemu/tree/next_page_overflow-r-b

Thanks,

Emilio

---
 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      |    9 +-
 target/hppa/translate.c     |    7 +-
 target/i386/translate.c     |    5 +-
 target/mips/translate.c     |  625 ++++++++++----------
 target/openrisc/translate.c |  226 ++++----
 target/ppc/translate.c      |    5 +-
 target/riscv/translate.c    |  255 ++++-----
 target/s390x/translate.c    | 1529 ++++++++++++++++++++++++-------------------------
 target/sh4/translate.c      |  171 +++---
 target/sparc/translate.c    |  207 ++++---
 14 files changed, 1524 insertions(+), 1558 deletions(-)