Skip to content

powerpc tcg backend improvements

Richard Henderson qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tcg/ppc: Adjust exit_tb for change in prologue placementtcg/ppc/tcg-target.c+4 -60 replies
2/3tcg/ppc: Revise goto_tb implementationtcg/ppc/tcg-target.c translate-all.c+40 -110 replies
3/3tcg/ppc: Prefer mask over andi.tcg/ppc/tcg-target.c+10 -100 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 0/3] powerpc tcg backend improvements

I happened to notice the ppc backend had a dependency on the placement of the prologue, which has just changed. There is a 32 byte window at code_gen_buffer + 16MB where we might do the wrong thing.

The second patch reduces the code size reserved for performing goto_tb from 7 insns to 4. We probably haven't emitted all 7 insns for quite some time, since the TCG_REG_RA patch went in. But in the process, allow for the atomic update of the insns, something that I could see being required eventually.

The third patch is a guess. But it matches the preferences in gcc, giving out-of-order processors a tad more freedom by avoiding cr0 when possible.

Anyway, I've been running an alpha guest on a ppc64le host with these patches for a week now.

r~

Richard Henderson (3):
tcg/ppc: Adjust exit_tb for change in prologue placement tcg/ppc: Revise goto_tb implementation
tcg/ppc: Prefer mask over andi.

 tcg/ppc/tcg-target.c | 79 ++++++++++++++++++++++++++++++++++------------------
 translate-all.c      |  2 ++
 2 files changed, 54 insertions(+), 27 deletions(-)
Signature · 1 line
2.4.3