Skip to content

tcg cross-tb optimizations

Richard Henderson qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest25 of 26 patches 1 replyIn review
  2. v625 patches 8 repliesSuperseded
  3. v519 patches 21 repliesSuperseded

Changes since v7 from the cover letter

* I've dropped the alpha patch to use goto_ptr until I can figure out why this is causing minute-long hangs while booting a kernel. It's an odd one, perhaps timing related, since the hangs do not (usually) occur when logging is enabled.
* Added r-b and patches from Aurelien.

25 of 26 patches are in this archive. The cover letter announces 26.

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/26target/nios2: Fix 64-bit ilp32 compilationtarget/nios2/translate.c+1 -10 replies
2/26tcg/sparc: Use the proper compilation flags for 32-bitconfigure+3 -30 replies
3/26qemu/atomic: Loosen restrictions for 64-bit ILP32 hostsinclude/qemu/atomic.h+26 -80 replies
4/26tcg: Introduce goto_ptr opcode and tcg_gen_lookup_and_goto_ptrcpu-exec.c include/exec/exec-all.h tcg-runtime.c +16 more+85 -40 replies
5/26tcg/i386: implement goto_ptrtcg/i386/tcg-target.h tcg/i386/tcg-target.inc.c+23 -30 replies
6/26target/arm: optimize cross-page direct jumps in softmmutarget/arm/translate.c+5 -10 replies
7/26target/arm: optimize indirect branchestarget/arm/translate.c target/arm/translate.h+20 -90 replies
8/26target/i386: introduce gen_jr helper to generate lookup_and_goto_ptrtarget/i386/translate.c+24 -10 replies
9/26target/i386: optimize cross-page direct jumps in softmmutarget/i386/translate.c+2 -20 replies
10/26target/i386: optimize indirect branchestarget/i386/translate.c+8 -60 replies
11/26tb-hash: improve tb_jmp_cache hash function in user modeinclude/exec/tb-hash.h+12 -00 replies
12/26tcg/ppc: Implement goto_ptrtcg/ppc/tcg-target.h tcg/ppc/tcg-target.inc.c+8 -10 replies
13/26tcg/aarch64: Implement goto_ptrtcg/aarch64/tcg-target.h tcg/aarch64/tcg-target.inc.c+21 -30 replies
14/26tcg/sparc: Implement goto_ptrtcg/sparc/tcg-target.h tcg/sparc/tcg-target.inc.c+11 -20 replies
15/26tcg/s390: Implement goto_ptrtcg/s390/tcg-target.h tcg/s390/tcg-target.inc.c+22 -40 replies
16/26tcg/arm: Clarify tcg_out_bx for arm4 hosttcg/arm/tcg-target.inc.c+15 -141 reply
17/26tcg/arm: Implement goto_ptrtcg/arm/tcg-target.h tcg/arm/tcg-target.inc.c+22 -50 replies
19/26target/s390: Use tcg_gen_lookup_and_goto_ptrtarget/s390x/translate.c+12 -50 replies
20/26target/hppa: Use tcg_gen_lookup_and_goto_ptrtarget/hppa/translate.c+4 -40 replies
21/26target/aarch64: optimize cross-page direct jumps in softmmutarget/arm/translate-a64.c+1 -10 replies
22/26target/aarch64: optimize indirect branchestarget/arm/translate-a64.c+1 -20 replies
23/26target/mips: optimize cross-page direct jumps in softmmutarget/mips/translate.c+1 -10 replies
24/26target/mips: optimize indirect branchestarget/mips/translate.c+1 -10 replies
25/26target/alpha: Implement WTINT inlinetarget/alpha/translate.c+11 -50 replies
26/26target/alpha: Use goto_tb for fallthru between TBstarget/alpha/translate.c+12 -20 replies

Reviews trailers per patch

14 of 25 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéAlex BennéeRichard HendersonEmilio G. CotaAurelien Jarno
1/26R-b R-b
2/26R-b
3/26R-b
4/26R-b
5/26R-b
6/26R-b R-b
7/26
8/26R-b
9/26R-b
10/26R-b R-b
11/26R-b R-b
12/26
13/26T-b R-b
14/26
15/26T-b R-b
16/26R-b
17/26
19/26T-b R-b
20/26
21/26
22/26
23/26
24/26
25/26
26/26

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

Read the v7 thread

Cover letter [Qemu-devel] [PATCH v7 00/26] tcg cross-tb optimizations

Changes since v7:
* I've dropped the alpha patch to use goto_ptr until I can figure out why this is causing minute-long hangs while booting a kernel. It's an odd one, perhaps timing related, since the hangs do not (usually) occur when logging is enabled.
* Added r-b and patches from Aurelien.

r~

Aurelien Jarno (3):
tcg/mips: implement goto_ptr
target/mips: optimize cross-page direct jumps in softmmu target/mips: optimize indirect branches

Emilio G. Cota (10):
tcg: Introduce goto_ptr opcode and tcg_gen_lookup_and_goto_ptr tcg/i386: implement goto_ptr
target/arm: optimize cross-page direct jumps in softmmu target/arm: optimize indirect branches
target/i386: introduce gen_jr helper to generate lookup_and_goto_ptr target/i386: optimize cross-page direct jumps in softmmu target/i386: optimize indirect branches
tb-hash: improve tb_jmp_cache hash function in user mode target/aarch64: optimize cross-page direct jumps in softmmu target/aarch64: optimize indirect branches

Richard Henderson (13):
target/nios2: Fix 64-bit ilp32 compilation tcg/sparc: Use the proper compilation flags for 32-bit qemu/atomic: Loosen restrictions for 64-bit ILP32 hosts tcg/ppc: Implement goto_ptr
tcg/aarch64: Implement goto_ptr
tcg/sparc: Implement goto_ptr
tcg/s390: Implement goto_ptr
tcg/arm: Clarify tcg_out_bx for arm4 host tcg/arm: Implement goto_ptr
target/s390: Use tcg_gen_lookup_and_goto_ptr target/hppa: Use tcg_gen_lookup_and_goto_ptr target/alpha: Implement WTINT inline target/alpha: Use goto_tb for fallthru between TBs

 configure                    |  6 ++---
 cpu-exec.c                   |  6 ++---
 include/exec/exec-all.h      |  2 ++
 include/exec/tb-hash.h       | 12 ++++++++++
 include/qemu/atomic.h        | 34 +++++++++++++++++++++-------
 target/alpha/translate.c     | 30 ++++++++++++++++++------
 target/arm/translate-a64.c   |  5 ++--
 target/arm/translate.c       | 21 +++++++++++++----
 target/arm/translate.h       |  4 ++++
 target/hppa/translate.c      |  8 +++----
 target/i386/translate.c      | 43 +++++++++++++++++++++++++++--------
 target/mips/translate.c      |  4 ++--
 target/nios2/translate.c     |  2 +-
 target/s390x/translate.c     | 17 ++++++++++----
 tcg-runtime.c                | 32 ++++++++++++++++++++++++++
 tcg/README                   |  8 +++++++
 tcg/aarch64/tcg-target.h     |  1 +
 tcg/aarch64/tcg-target.inc.c | 22 ++++++++++++++++--
 tcg/arm/tcg-target.h         |  1 +
 tcg/arm/tcg-target.inc.c     | 54 +++++++++++++++++++++++++++++---------------
 tcg/i386/tcg-target.h        |  1 +
 tcg/i386/tcg-target.inc.c    | 24 ++++++++++++++++++--
 tcg/ia64/tcg-target.h        |  1 +
 tcg/mips/tcg-target.h        |  1 +
 tcg/mips/tcg-target.inc.c    | 13 +++++++++++
 tcg/ppc/tcg-target.h         |  1 +
 tcg/ppc/tcg-target.inc.c     |  7 ++++++
 tcg/s390/tcg-target.h        |  1 +
 tcg/s390/tcg-target.inc.c    | 24 +++++++++++++++++---
 tcg/sparc/tcg-target.h       |  1 +
 tcg/sparc/tcg-target.inc.c   | 11 ++++++++-
 tcg/tcg-op.c                 | 12 ++++++++++
 tcg/tcg-op.h                 | 11 +++++++++
 tcg/tcg-opc.h                |  1 +
 tcg/tcg-runtime.h            |  2 ++
 tcg/tcg.c                    |  5 ++++
 tcg/tcg.h                    |  1 +
 tcg/tci/tcg-target.h         |  1 +
 38 files changed, 353 insertions(+), 77 deletions(-)
Signature · 1 line
2.9.4