Skip to content

Proposed format for m68k flags

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11target-m68k: Print flags properlytarget-m68k/cpu.h target-m68k/helper.c target-m68k/translate.c+4 -30 replies
2/11target-m68k: Some fixes to SR and flags managementtarget-m68k/cpu.h target-m68k/helper.c target-m68k/op_helper.c +1 more+21 -60 replies
3/11target-m68k: Remove incorrect clearing of cc_xtarget-m68k/helper.c+0 -73 replies
4/11target-m68k: Replace helper_xflag_lt with setcondtarget-m68k/helper.c target-m68k/helper.h target-m68k/translate.c+7 -130 replies
5/11target-m68k: Reorg flags handlingtarget-m68k/cpu.c target-m68k/cpu.h target-m68k/helper.c +4 more+379 -4870 replies
6/11target-m68k: Introduce DisasComparetarget-m68k/translate.c+60 -220 replies
7/11target-m68k: Use setcond for scctarget-m68k/translate.c+11 -90 replies
8/11target-m68k: Optimize some comparisonstarget-m68k/translate.c+102 -60 replies
9/11target-m68k: Optimize gen_flush_flagstarget-m68k/translate.c+52 -40 replies
10/11target-m68k: Inline shiftstarget-m68k/helper.c target-m68k/helper.h target-m68k/translate.c+72 -770 replies
11/11target-m68k: Inline addx, subx, negxtarget-m68k/helper.c target-m68k/helper.h target-m68k/translate.c+56 -530 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/11] Proposed format for m68k flags

As promised a couple of days ago, with the addition of CC_OP_CMP, which wasn't in the text of my proposal the other day. From the looks of the generated code, I believe this is ideal.

The following is based on Laurent's 8/30 Update cpu flags management.

FWIW, there's something in the last patch here that breaks the coldfire kernel I've been testing (it may even be a bug in tcg; the problem only appears well into the boot process). But I'm about to go away for the weekend and still wanted to include it to show what can be done.

For convenience, the complete tree pushed to

git://github.com/rth7680/qemu.git tgt-m68k

r~

Richard Henderson (11):
target-m68k: Print flags properly
target-m68k: Some fixes to SR and flags management
target-m68k: Remove incorrect clearing of cc_x
target-m68k: Replace helper_xflag_lt with setcond
target-m68k: Reorg flags handling
target-m68k: Introduce DisasCompare
target-m68k: Use setcond for scc
target-m68k: Optimize some comparisons
target-m68k: Optimize gen_flush_flags
target-m68k: Inline shifts
target-m68k: Inline addx, subx, negx

 target-m68k/cpu.c       |   2 +-
 target-m68k/cpu.h       |  48 +--
 target-m68k/helper.c    | 399 +++++++++----------------
 target-m68k/helper.h    |  12 +-
 target-m68k/op_helper.c |  35 +--
 target-m68k/qregs.def   |   6 +-
 target-m68k/translate.c | 769 +++++++++++++++++++++++++++++++-----------------
 7 files changed, 674 insertions(+), 597 deletions(-)
Signature · 1 line
2.4.3