Skip to content

target-sparc comparison improvements

Richard Henderson qemu-devel 1 version Applied

Status from this message: Thanks, applied all.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest23 patches 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/23target-sparc: Tidy cpu_dump_statetarget-sparc/cpu.c+3 -40 replies
2/23target-sparc: Make CPU_LOG_INT useful by defaulttarget-sparc/int32_helper.c target-sparc/int64_helper.c+4 -110 replies
3/23target-sparc: Tidy do_branch interfacestarget-sparc/translate.c+18 -200 replies
4/23target-sparc: Tidy flush_cond interfacetarget-sparc/translate.c+5 -50 replies
5/23target-sparc: Tidy gen_trap_ifnofpu interfacetarget-sparc/translate.c+28 -180 replies
6/23target-sparc: Tidy save_state interfacetarget-sparc/translate.c+49 -490 replies
7/23target-sparc: Tidy gen_mov_pc_npc interfacetarget-sparc/translate.c+6 -60 replies
8/23target-sparc: Tidy save_npc interfacetarget-sparc/translate.c+4 -40 replies
9/23target-sparc: Tidy gen_generic_branch interfacetarget-sparc/translate.c+7 -80 replies
10/23target-sparc: Introduce DisasCompare and functions to generate ittarget-sparc/translate.c+83 -90 replies
11/23target-sparc: Use DisasCompare in Tcctarget-sparc/translate.c+11 -90 replies
12/23target-sparc: Use DisasCompare and movcond in FMOVR, FMOVCCtarget-sparc/translate.c+86 -1170 replies
13/23target-sparc: Use DisasCompare and movcond in MOVCCtarget-sparc/translate.c+20 -240 replies
14/23target-sparc: Use DisasCompare and movcond in MOVRtarget-sparc/translate.c+14 -170 replies
15/23target-sparc: Use movcond in gen_generic_branchtarget-sparc/translate.c+7 -110 replies
16/23target-sparc: Move sdivx and udivx out of linetarget-sparc/cpu.h target-sparc/helper.c target-sparc/helper.h +2 more+37 -520 replies
17/23target-sparc: Tidy Tcctarget-sparc/translate.c+53 -380 replies
18/23target-sparc: Move taddcctv and tsubcctv out of linetarget-sparc/helper.c target-sparc/helper.h target-sparc/translate.c+66 -1020 replies
19/23target-sparc: Use movcond in mulscctarget-sparc/translate.c+5 -60 replies
20/23target-sparc: Use movcond for FMOV*Rtarget-sparc/translate.c+16 -300 replies
21/23target-sparc: Cleanup "global" temporary allocationtarget-sparc/translate.c+19 -190 replies
22/23target-sparc: Fall through from not-taken traptarget-sparc/translate.c+7 -50 replies
23/23target-sparc: Optimize conditionals using SUBCCtarget-sparc/translate.c+131 -613 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/23] target-sparc comparison improvements

Most of the patches are cleanup. Some of the middle patches that make use of setcond and movcond where apropriate do improve code generation. But more important that that, we no longer have tcg temporaries that are live across basic blocks. Indeed, the only remaining uses of brcond are in Tcc and the actual end-of-TB branching code.

The final patch begins to make use of the infrastructure added during the cleanups. Obviously there's more that can be done here, handling addcc and logic ops, but I've run out of time for today.

Tested on
linux-user-test-0.3 images
sparc32 works well
sparc64 no longer crashes, but does exit 1

the shipped openbios image
sparc32 works well
sparc64 works as well as head (stalls before prompt)

sparc-test-0.2
sparc32 boots to prompt

r~

Richard Henderson (23):
target-sparc: Tidy cpu_dump_state
target-sparc: Make CPU_LOG_INT useful by default
target-sparc: Tidy do_branch interfaces
target-sparc: Tidy flush_cond interface
target-sparc: Tidy gen_trap_ifnofpu interface
target-sparc: Tidy save_state interface
target-sparc: Tidy gen_mov_pc_npc interface
target-sparc: Tidy save_npc interface
target-sparc: Tidy gen_generic_branch interface
target-sparc: Introduce DisasCompare and functions to generate it
target-sparc: Use DisasCompare in Tcc
target-sparc: Use DisasCompare and movcond in FMOVR, FMOVCC
target-sparc: Use DisasCompare and movcond in MOVCC
target-sparc: Use DisasCompare and movcond in MOVR
target-sparc: Use movcond in gen_generic_branch
target-sparc: Move sdivx and udivx out of line
target-sparc: Tidy Tcc
target-sparc: Move taddcctv and tsubcctv out of line
target-sparc: Use movcond in mulscc
target-sparc: Use movcond for FMOV*R
target-sparc: Cleanup "global" temporary allocation
target-sparc: Fall through from not-taken trap
target-sparc: Optimize conditionals using SUBCC

 target-sparc/cpu.c          |    7 +-
 target-sparc/cpu.h          |    1 +
 target-sparc/helper.c       |   86 ++++
 target-sparc/helper.h       |    6 +
 target-sparc/int32_helper.c |    7 +-
 target-sparc/int64_helper.c |    8 +-
 target-sparc/ldst_helper.c  |    4 +-
 target-sparc/translate.c    | 1133 +++++++++++++++++++++----------------------
 8 files changed, 653 insertions(+), 599 deletions(-)
Signature · 1 line
1.7.11.4