Skip to content

target/i386: make decoding entirely table based

Paolo Bonzini qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10target/i386: use cpu_cc_dst for CC_OP_POPCNTtarget/i386/cpu.h target/i386/tcg/cc_helper.c target/i386/tcg/emit.c.inc +1 more+5 -51 reply
2/10target/i386: give CC_OP_POPCNT low bits corresponding to MO_TLtarget/i386/cpu.h target/i386/tcg/translate.c+12 -41 reply
3/10target/i386: convert bit test instructions to new decodertarget/i386/tcg/decode-new.c.inc target/i386/tcg/decode-new.h target/i386/tcg/emit.c.inc +1 more+181 -1581 reply
4/10target/i386: try not to force EFLAGS computation for CC_OP_ADOX/ADCXtarget/i386/tcg/translate.c+4 -01 reply
5/10target/i386: decode address before going back to translate.ctarget/i386/tcg/decode-new.c.inc target/i386/tcg/decode-new.h target/i386/tcg/emit.c.inc +1 more+103 -1180 replies
6/10target/i386: convert CMPXCHG8B/CMPXCHG16B to new decodertarget/i386/tcg/decode-new.c.inc target/i386/tcg/decode-new.h target/i386/tcg/emit.c.inc +1 more+124 -1291 reply
7/10target/i386: do not check PREFIX_LOCK in old-style decodertarget/i386/tcg/translate.c+8 -180 replies
8/10target/i386: list instructions still in translate.ctarget/i386/tcg/decode-new.c.inc+31 -00 replies
9/10target/i386: assert that cc_op* and pc_save are preservedtarget/i386/tcg/translate.c+3 -90 replies
10/10target/i386: remove gen_ext_tltarget/i386/tcg/translate.c+17 -240 replies

Reviews trailers per patch

All 10 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/10R-b
2/10R-b
3/10R-b
4/10R-b
5/10R-b
6/10R-b
7/10R-b
8/10R-b
9/10R-b
10/10R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] target/i386: make decoding entirely table based

The trailing part of the previous series I sent; with fixes for BT/BTS/BTR/BTC, plus moving code generation of CMPXCHG8B/CMPXCHG16B to the new decoder. This way all LOCKable instructions are converted, and the patch "target/i386: do not check PREFIX_LOCK in old-style decoder" is correct.

Sneak in a couple cleanups for CC_OP_POPCNT. They don't really make the generated code any more efficient, but they simplify a bit the logic for the BT/BTS/BTR/BTC flags.

Supersedes: <[email protected]>

Paolo Bonzini (10):
target/i386: use cpu_cc_dst for CC_OP_POPCNT
target/i386: give CC_OP_POPCNT low bits corresponding to MO_TL target/i386: convert bit test instructions to new decoder target/i386: try not to force EFLAGS computation for CC_OP_ADOX/ADCX target/i386: decode address before going back to translate.c target/i386: convert CMPXCHG8B/CMPXCHG16B to new decoder target/i386: do not check PREFIX_LOCK in old-style decoder target/i386: list instructions still in translate.c target/i386: assert that cc_op* and pc_save are preserved target/i386: remove gen_ext_tl

 target/i386/cpu.h                |  13 +-
 target/i386/tcg/decode-new.h     |  19 +-
 target/i386/tcg/cc_helper.c      |   2 +-
 target/i386/tcg/translate.c      | 492 ++++++-------------------------
 target/i386/tcg/decode-new.c.inc | 136 ++++++---
 target/i386/tcg/emit.c.inc       | 249 +++++++++++++++-
 6 files changed, 467 insertions(+), 444 deletions(-)
Signature · 1 line
2.45.2