Skip to content

tcg-sparc improvments

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15tcg-sparc: Hack in qemu_ld/st64 for 32-bit.tcg/sparc/tcg-target.c+3 -00 replies
2/15tcg-sparc: Fix ADDX opcode.tcg/sparc/tcg-target.c+1 -10 replies
3/15tcg-sparc: Assume v9 cpu always, i.e. force v8plus in 32-bit mode.configure dyngen-exec.h tcg/sparc/tcg-target.c +1 more+13 -550 replies
4/15tcg-sparc: Fix qemu_ld/st to handle 32-bit host.tcg/sparc/tcg-target.c+378 -3730 replies
5/15tcg-sparc: Simplify qemu_ld/st direct memory paths.tcg/sparc/tcg-target.c+56 -1530 replies
6/15tcg-sparc: Support GUEST_BASE.configure tcg/sparc/tcg-target.c tcg/sparc/tcg-target.h+33 -110 replies
7/15tcg-sparc: Steamline qemu_ld/st more.tcg/sparc/tcg-target.c+125 -1100 replies
8/15Avoid declaring the env variable at all if CONFIG_TCG_PASS_AREG0.dyngen-exec.h user-exec.c+19 -32 replies
9/15tcg-sparc: Do not use a global register for AREG0.dyngen-exec.h exec.c+25 -113 replies
10/15tcg-sparc: Change AREG0 in generated code to %i0.tcg/sparc/tcg-target.c tcg/sparc/tcg-target.h+3 -90 replies
11/15tcg-sparc: Clean up cruft stemming from attempts to use global registers.configure tcg/sparc/tcg-target.c tcg/sparc/tcg-target.h+26 -610 replies
12/15tcg-sparc: Mask shift immediates to avoid illegal insns.tcg/sparc/tcg-target.c+12 -60 replies
13/15tcg-sparc: Use defines for temporaries.tcg/sparc/tcg-target.c+56 -541 reply
14/15tcg-sparc: Add %g/%o registers to alloc_ordertcg/sparc/tcg-target.c+14 -00 replies
15/15tcg-sparc: Fix and enable direct TB chaining.exec-all.h tcg/sparc/tcg-target.c+22 -60 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 00/15] tcg-sparc improvments

32-bit sparc hasn't worked in quite a while. Missing opcodes, incorrect opcodes, unconditional use of ASI_PRIMARY_LITTLE.

This patch set begins by dropping support for pre-v9 sparc. This lets us clean things up quite a bit, using 64-bit load and store operations.

I was still having problems with %g6 being clobbered in glibc. Patches 7-10 drop the use of global registers for the sparc port entirely. Given the hoops being used to protect areg0 around calls within the tcg generated code, deferring to a %g7-relative tls access in the helpers is approximately as efficient. As targets are converted to CONFIG_TCG_PASS_AREG0 even this will improve as direct register access is available.

r~

Richard Henderson (15):
tcg-sparc: Hack in qemu_ld/st64 for 32-bit.
tcg-sparc: Fix ADDX opcode.
tcg-sparc: Assume v9 cpu always, i.e. force v8plus in 32-bit mode.
tcg-sparc: Fix qemu_ld/st to handle 32-bit host.
tcg-sparc: Simplify qemu_ld/st direct memory paths.
tcg-sparc: Support GUEST_BASE.
tcg-sparc: Steamline qemu_ld/st more.
Avoid declaring the env variable at all if CONFIG_TCG_PASS_AREG0.
tcg-sparc: Do not use a global register for AREG0.
tcg-sparc: Change AREG0 in generated code to %i0.
tcg-sparc: Clean up cruft stemming from attempts to use global
registers.
tcg-sparc: Mask shift immediates to avoid illegal insns.
tcg-sparc: Use defines for temporaries.
tcg-sparc: Add %g/%o registers to alloc_order
tcg-sparc: Fix and enable direct TB chaining.

 configure              |   53 +---
 dyngen-exec.h          |   27 +-
 exec-all.h             |    9 +-
 exec.c                 |   16 +-
 tcg/sparc/tcg-target.c |  951 +++++++++++++++++++++++-------------------------
 tcg/sparc/tcg-target.h |   34 +-
 user-exec.c            |   17 +-
 7 files changed, 520 insertions(+), 587 deletions(-)
Signature · 1 line
1.7.7.6