Skip to content

Collection of improvements for tcg/ppc64

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15tcg-ppc64: Avoid code for nop movetcg/ppc64/tcg-target.c+3 -10 replies
2/15tcg-ppc64: Add an LK argument to tcg_out_calltcg/ppc64/tcg-target.c+19 -190 replies
3/15tcg-ppc64: Use the branch absolute instruction when possibletcg/ppc64/tcg-target.c+18 -130 replies
4/15tcg-ppc64: Don't load the static chain from TCGtcg/ppc64/tcg-target.c+0 -10 replies
5/15tcg-ppc64: Look through the function descriptor when profitabletcg/ppc64/tcg-target.c+11 -00 replies
6/15tcg-ppc64: Move AREG0 to r31tcg/ppc64/tcg-target.c tcg/ppc64/tcg-target.h+3 -30 replies
7/15tcg-ppc64: Tidy register allocation ordertcg/ppc64/tcg-target.c+21 -250 replies
8/15tcg-ppc64: Create PowerOpcodetcg/ppc64/tcg-target.c+138 -1350 replies
9/15tcg-ppc64: Handle long offsets bettertcg/ppc64/tcg-target.c+81 -780 replies
10/15tcg-ppc64: Use indirect jump threadinginclude/exec/exec-all.h tcg/ppc64/tcg-target.c+10 -190 replies
11/15tcg-ppc64: Setup TCG_REG_TBtcg/ppc64/tcg-target.c+18 -50 replies
12/15tcg-ppc64: Use TCG_REG_TB in tcg_out_movi and tcg_out_mem_longtcg/ppc64/tcg-target.c+99 -650 replies
13/15tcg-ppc64: Tidy tcg_target_qemu_prologuetcg/ppc64/tcg-target.c+16 -220 replies
14/15tcg-ppc64: Streamline tcg_out_tlb_readtcg/ppc64/tcg-target.c+95 -1070 replies
15/15tcg-ppc64: Implement CONFIG_QEMU_LDST_OPTIMIZATIONconfigure include/exec/exec-all.h tcg/ppc64/tcg-target.c+146 -790 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH for-next 00/15] Collection of improvements for tcg/ppc64

About half of these patches are focused on reducing the number of full 64-bit constants that need to be generated for addresses:

E.g. patch 5, looking through the function descriptor. If the program is built --disable-pie, the elements of the function descriptors are all 32-bit constants.

E.g. the end result of indirect jump threading + TCG_REG_TB. Before, we reserve 6 insn slots to generate the full 64-bit address. After, we use 2 insns -- addis + ld -- to load the full 64-bit address from the indirection slot.

The second patch could probably be reverted. I'd planned to be able to use the same conditional call + tail call scheme as ARM, but I'd forgotten the need for a conditional store to go along with that. OTOH, it might still turn out to be useful somewhere.

r~

Richard Henderson (15):
tcg-ppc64: Avoid code for nop move
tcg-ppc64: Add an LK argument to tcg_out_call
tcg-ppc64: Use the branch absolute instruction when possible
tcg-ppc64: Don't load the static chain from TCG
tcg-ppc64: Look through the function descriptor when profitable
tcg-ppc64: Move AREG0 to r31
tcg-ppc64: Tidy register allocation order
tcg-ppc64: Create PowerOpcode
tcg-ppc64: Handle long offsets better
tcg-ppc64: Use indirect jump threading
tcg-ppc64: Setup TCG_REG_TB
tcg-ppc64: Use TCG_REG_TB in tcg_out_movi and tcg_out_mem_long
tcg-ppc64: Tidy tcg_target_qemu_prologue
tcg-ppc64: Streamline tcg_out_tlb_read
tcg-ppc64: Implement CONFIG_QEMU_LDST_OPTIMIZATION

 configure               |    2 +-
 include/exec/exec-all.h |    7 +-
 tcg/ppc64/tcg-target.c  | 1079 ++++++++++++++++++++++++++---------------------
 tcg/ppc64/tcg-target.h  |    2 +-
 4 files changed, 598 insertions(+), 492 deletions(-)
Signature · 1 line
1.8.3.1