tcg 2.9 patch queue
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest65 patches 3 repliesIn review
- v464 patches 36 repliesSuperseded
- v318 patches 0 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 18 patches | 15 replies | Superseded | |
| v1 | 15 patches | 8 replies | Applied |
Changes since v3 from the cover letter
* PPC host patches have been properly annotated for cpu revision,
- cnttz[wd] are power9 inventions,
- cntpop[wd] are power7 inventions.
* X86 host checks the correct cpuid bit for lzcnt.
* Generic TCG has significant changes to enable "interesting" combinations of constraints for X86 host bsr/bsf and to some extent lzcnt/tzcnt.
* Opcode for ctpop. I had begun with only the helpers for ctpop, but added the opcode after I discovered that power7/8 could use that as a better alternative for implementing ctz.
* Updates to the i386 and ppc disassemblers, to handle the new insns that we're emitting.
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/65 | tcg: Add field extraction primitivestcg/ tcg/ tcg/ +12 more | +426 | 0 replies | |
| 2/65 | tcg: Minor adjustments to deposit expanderstcg/ | +4 | 0 replies | |
| 3/65 | tcg: Add deposit_z expandertcg/ tcg/ | +149 | 0 replies | |
| 4/65 | tcg/aarch64: Implement field extraction opcodestcg/ tcg/ | +18 | 0 replies | |
| 5/65 | tcg/arm: Move isa detection to tcg-target.htcg/ tcg/ | +33 | 0 replies | |
| 6/65 | tcg/arm: Implement field extraction opcodestcg/ tcg/ | +26 | 0 replies | |
| 7/65 | tcg/i386: Implement field extraction opcodestcg/ tcg/ | +47 | 0 replies | |
| 8/65 | tcg/mips: Implement field extraction opcodestcg/ tcg/ | +5 | 0 replies | |
| 9/65 | tcg/ppc: Implement field extraction opcodestcg/ tcg/ | +12 | 0 replies | |
| 10/65 | tcg/s390: Expose host facilities to tcg-target.htcg/ tcg/ | +96 | 0 replies | |
| 11/65 | tcg/s390: Implement field extraction opcodestcg/ tcg/ | +13 | 0 replies | |
| 12/65 | tcg/s390: Support deposit into zerotcg/ | +26 | 0 replies | |
| 13/65 | target-alpha: Use deposit and extract opstarget/ | +42 | 0 replies | |
| 14/65 | target-arm: Use new deposit and extract opstarget/ target/ | +37 | 0 replies | |
| 15/65 | target-i386: Use new deposit and extract opstarget/ | +23 | 0 replies | |
| 16/65 | target-mips: Use the new extract optarget/ | +5 | 0 replies | |
| 17/65 | target-ppc: Use the new deposit and extract opstarget/ | +19 | 0 replies | |
| 18/65 | target-s390x: Use the new deposit and extract opstarget/ | +22 | 0 replies | |
| 19/65 | tcg/optimize: Fold movcond 0/1 into setcondtcg/ | +15 | 0 replies | |
| 20/65 | tcg: Add markup for output requires new registertcg/ tcg/ | +23 | 0 replies | |
| 21/65 | tcg: Transition flat op_defs array to a target callbacktcg/ tcg/ tcg/ +8 more | +136 | 0 replies | |
| 22/65 | tcg: Pass the opcode width to target_parse_constrainttcg/ tcg/ tcg/ +7 more | +53 | 0 replies | |
| 23/65 | tcg: Allow an operand to be matching or a constanttcg/ tcg/ | +41 | 0 replies | |
| 24/65 | tcg: Add clz and ctz opcodestcg-runtime.c tcg/ tcg/ +14 more | +266 | 0 replies | |
| 25/65 | disas/i386.c: Handle tzcntdisas/ | +10 | 0 replies | |
| 26/65 | disas/ppc: Handle popcnt and cnttzdisas/ | +10 | 0 replies | |
| 27/65 | target-alpha: Use the ctz and clz opcodestarget/ target/ target/ | +2 | 0 replies | |
| 28/65 | target-cris: Use clz opcodetarget/ target/ target/ | +1 | 0 replies | |
| 29/65 | target-microblaze: Use clz opcodetarget/ target/ target/ | +1 | 0 replies | |
| 30/65 | target-mips: Use clz opcodetarget/ target/ target/ | +16 | 0 replies | |
| 31/65 | target-openrisc: Use clz and ctz opcodestarget/ target/ target/ | +4 | 0 replies | |
| 32/65 | target-ppc: Use clz and ctz opcodestarget/ target/ target/ | +16 | 0 replies | |
| 33/65 | target-s390x: Use clz opcodetarget/ target/ target/ | +1 | 0 replies | |
| 34/65 | target-tilegx: Use clz and ctz opcodestarget/ target/ target/ | +2 | 0 replies | |
| 35/65 | target-tricore: Use clz opcodetarget/ target/ target/ | +3 | 0 replies | |
| 36/65 | target-unicore32: Use clz opcodetarget/ target/ target/ | +3 | 0 replies | |
| 37/65 | target-xtensa: Use clz opcodetarget/ target/ target/ | +11 | 0 replies | |
| 38/65 | target-arm: Use clz opcodetarget/ target/ target/ +3 more | +7 | 0 replies | |
| 39/65 | target-i386: Use clz and ctz opcodestarget/ target/ target/ | +14 | 0 replies | |
| 40/65 | tcg/ppc: Handle ctz and clz opcodestcg/ tcg/ | +73 | 0 replies | |
| 41/65 | tcg/aarch64: Handle ctz and clz opcodestcg/ tcg/ | +52 | 0 replies | |
| 42/65 | tcg/arm: Handle ctz and clz opcodestcg/ tcg/ | +29 | 0 replies | |
| 43/65 | tcg/mips: Handle clz opcodetcg/ tcg/ | +36 | 0 replies | |
| 44/65 | tcg/s390: Handle clz opcodetcg/ tcg/ | +36 | 0 replies | |
| 45/65 | tcg/i386: Fuly convert tcg_target_op_deftcg/ | +198 | 0 replies | |
| 46/65 | tcg/i386: Hoist common arguments in tcg_out_optcg/ | +95 | 0 replies | |
| 47/65 | tcg/i386: Allow bmi2 shiftx to have non-matching operandstcg/ | +19 | 0 replies | |
| 48/65 | tcg/i386: Handle ctz and clz opcodestcg/ tcg/ | +120 | 0 replies | |
| 49/65 | tcg/i386: Rely on undefined/undocumented behaviour of BSF/BSRtcg/ | +22 | 2 replies | |
| 50/65 | tcg: Add helpers for clrsbtcg-runtime.c tcg/ tcg/ +1 more | +44 | 0 replies | |
| 51/65 | target-arm: Use clrsb helpertarget/ target/ target/ | +4 | 0 replies | |
| 52/65 | target-tricore: Use clrsb helpertarget/ target/ target/ | +1 | 0 replies | |
| 53/65 | target-xtensa: Use clrsb helpertarget/ | +1 | 0 replies | |
| 54/65 | tcg: Add opcode for ctpoptcg-runtime.c tcg/ tcg/ +13 more | +78 | 0 replies | |
| 55/65 | target-alpha: Use ctpop helpertarget/ target/ target/ | +1 | 0 replies | |
| 56/65 | target-ppc: Use ctpop helpertarget/ target/ target/ | +9 | 0 replies | |
| 57/65 | target-s390x: Avoid a loop for popcnttarget/ | +6 | 0 replies | |
| 58/65 | target-sparc: Use ctpop helpertarget/ target/ target/ | +1 | 1 reply | |
| 59/65 | target-tilegx: Use ctpop helpertarget/ target/ target/ | +1 | 0 replies | |
| 60/65 | target-i386: Use ctpop helpertarget/ target/ target/ +2 more | +15 | 0 replies | |
| 61/65 | qemu/host-utils.h: Reduce the operation count in the fallback ctpopinclude/ | +11 | 0 replies | |
| 62/65 | tests: New test-bitcnttests/ tests/ tests/ | +143 | 0 replies | |
| 63/65 | tcg: Use ctpop to generate ctz if neededtcg/ | +60 | 0 replies | |
| 64/65 | tcg/ppc: Handle ctpop opcodetcg/ tcg/ | +14 | 0 replies | |
| 65/65 | tcg/i386: Handle ctpop opcodetcg/ tcg/ | +14 | 0 replies |
Reviews trailers per patch
23 of 65 patches have a Reviewed-by or Acked-by.
| Patch | Alex Bennée | David Gibson | Eduardo Habkost | Yongbok Kim | Bastian Koppelmann | Mark Cave-Ayland |
|---|---|---|---|---|---|---|
| 1/65 | R-b | |||||
| 2/65 | R-b | |||||
| 3/65 | ||||||
| 4/65 | R-b | |||||
| 5/65 | R-b | |||||
| 6/65 | R-b | |||||
| 7/65 | ||||||
| 8/65 | ||||||
| 9/65 | R-b | |||||
| 10/65 | ||||||
| 11/65 | ||||||
| 12/65 | ||||||
| 13/65 | ||||||
| 14/65 | ||||||
| 15/65 | A-b | |||||
| 16/65 | R-b | |||||
| 17/65 | R-b | |||||
| 18/65 | ||||||
| 19/65 | ||||||
| 20/65 | R-b | |||||
| 21/65 | R-b | |||||
| 22/65 | R-b | |||||
| 23/65 | R-b | |||||
| 24/65 | R-b | |||||
| 25/65 | ||||||
| 26/65 | ||||||
| 27/65 | ||||||
| 28/65 | ||||||
| 29/65 | ||||||
| 30/65 | ||||||
| 31/65 | ||||||
| 32/65 | ||||||
| 33/65 | ||||||
| 34/65 | ||||||
| 35/65 | T-b R-b | |||||
| 36/65 | ||||||
| 37/65 | ||||||
| 38/65 | R-b | |||||
| 39/65 | ||||||
| 40/65 | ||||||
| 41/65 | ||||||
| 42/65 | R-b | |||||
| 43/65 | ||||||
| 44/65 | ||||||
| 45/65 | ||||||
| 46/65 | ||||||
| 47/65 | ||||||
| 48/65 | ||||||
| 49/65 | ||||||
| 50/65 | R-b | |||||
| 51/65 | R-b | |||||
| 52/65 | T-b R-b | |||||
| 53/65 | ||||||
| 54/65 | R-b | |||||
| 55/65 | ||||||
| 56/65 | ||||||
| 57/65 | ||||||
| 58/65 | A-b | |||||
| 59/65 | ||||||
| 60/65 | ||||||
| 61/65 | R-b | |||||
| 62/65 | ||||||
| 63/65 | ||||||
| 64/65 | ||||||
| 65/65 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 6 reviewers.
Cover letter [Qemu-devel] [PATCH v5 00/65] tcg 2.9 patch queue
This is a combination of two patch sets that have had previous revisions, as well as some new patches. I wanted to post this all together since Alex was having trouble with prerequisites.
The full tree is at
git://github.com/rth7680/qemu.git tcg-2.9
Changes sinve v4:
* Feedback from Alex Bennee, including aarch64 guest fixes and a new test case.
Changes since v3:
* PPC host patches have been properly annotated for cpu revision,
- cnttz[wd] are power9 inventions,
- cntpop[wd] are power7 inventions.
* X86 host checks the correct cpuid bit for lzcnt.
* Generic TCG has significant changes to enable "interesting" combinations of constraints for X86 host bsr/bsf and to some extent lzcnt/tzcnt.
* Opcode for ctpop. I had begun with only the helpers for ctpop, but added the opcode after I discovered that power7/8 could use that as a better alternative for implementing ctz.
* Updates to the i386 and ppc disassemblers, to handle the new insns that we're emitting.
r~
Alex Bennée (1):
tests: New test-bitcnt
Richard Henderson (64):
tcg: Add field extraction primitives
tcg: Minor adjustments to deposit expanders
tcg: Add deposit_z expander
tcg/aarch64: Implement field extraction opcodes
tcg/arm: Move isa detection to tcg-target.h
tcg/arm: Implement field extraction opcodes
tcg/i386: Implement field extraction opcodes
tcg/mips: Implement field extraction opcodes
tcg/ppc: Implement field extraction opcodes
tcg/s390: Expose host facilities to tcg-target.h tcg/s390: Implement field extraction opcodes
tcg/s390: Support deposit into zero
target-alpha: Use deposit and extract ops
target-arm: Use new deposit and extract ops
target-i386: Use new deposit and extract ops
target-mips: Use the new extract op
target-ppc: Use the new deposit and extract ops
target-s390x: Use the new deposit and extract ops tcg/optimize: Fold movcond 0/1 into setcond
tcg: Add markup for output requires new register
tcg: Transition flat op_defs array to a target callback
tcg: Pass the opcode width to target_parse_constraint
tcg: Allow an operand to be matching or a constant
tcg: Add clz and ctz opcodes
disas/i386.c: Handle tzcnt
disas/ppc: Handle popcnt and cnttz
target-alpha: Use the ctz and clz opcodes
target-cris: Use clz opcode
target-microblaze: Use clz opcode
target-mips: Use clz opcode
target-openrisc: Use clz and ctz opcodes
target-ppc: Use clz and ctz opcodes
target-s390x: Use clz opcode
target-tilegx: Use clz and ctz opcodes
target-tricore: Use clz opcode
target-unicore32: Use clz opcode
target-xtensa: Use clz opcode
target-arm: Use clz opcode
target-i386: Use clz and ctz opcodes
tcg/ppc: Handle ctz and clz opcodes
tcg/aarch64: Handle ctz and clz opcodes
tcg/arm: Handle ctz and clz opcodes
tcg/mips: Handle clz opcode
tcg/s390: Handle clz opcode
tcg/i386: Fuly convert tcg_target_op_def
tcg/i386: Hoist common arguments in tcg_out_op
tcg/i386: Allow bmi2 shiftx to have non-matching operands tcg/i386: Handle ctz and clz opcodes
tcg/i386: Rely on undefined/undocumented behaviour of BSF/BSR
tcg: Add helpers for clrsb
target-arm: Use clrsb helper
target-tricore: Use clrsb helper
target-xtensa: Use clrsb helper
tcg: Add opcode for ctpop
target-alpha: Use ctpop helper
target-ppc: Use ctpop helper
target-s390x: Avoid a loop for popcnt
target-sparc: Use ctpop helper
target-tilegx: Use ctpop helper
target-i386: Use ctpop helper
qemu/host-utils.h: Reduce the operation count in the fallback ctpop
tcg: Use ctpop to generate ctz if needed
tcg/ppc: Handle ctpop opcode
tcg/i386: Handle ctpop opcode
disas/i386.c | 12 +- disas/ppc.c | 10 + include/qemu/host-utils.h | 25 +- target/alpha/helper.h | 4 - target/alpha/int_helper.c | 15 - target/alpha/translate.c | 73 +++-- target/arm/helper-a64.c | 20 -- target/arm/helper-a64.h | 4 - target/arm/helper.c | 5 - target/arm/helper.h | 1 - target/arm/translate-a64.c | 97 +++--- target/arm/translate.c | 43 +-- target/cris/helper.h | 1 - target/cris/op_helper.c | 5 - target/cris/translate.c | 2 +- target/i386/cc_helper.c | 3 + target/i386/cpu.h | 1 + target/i386/helper.h | 2 - target/i386/int_helper.c | 11 - target/i386/ops_sse.h | 26 -- target/i386/ops_sse_header.h | 1 - target/i386/translate.c | 89 ++--- target/microblaze/helper.h | 1 - target/microblaze/op_helper.c | 5 - target/microblaze/translate.c | 2 +- target/mips/helper.h | 7 - target/mips/op_helper.c | 22 -- target/mips/translate.c | 35 +- target/openrisc/helper.h | 2 - target/openrisc/int_helper.c | 19 -- target/openrisc/translate.c | 6 +- target/ppc/helper.h | 7 +- target/ppc/int_helper.c | 38 +-- target/ppc/translate.c | 61 ++-- target/s390x/helper.h | 1 - target/s390x/int_helper.c | 21 +- target/s390x/translate.c | 36 ++- target/sparc/helper.c | 5 - target/sparc/helper.h | 1 - target/sparc/translate.c | 2 +- target/tilegx/helper.c | 15 - target/tilegx/helper.h | 3 - target/tilegx/translate.c | 6 +- target/tricore/helper.h | 3 - target/tricore/op_helper.c | 15 - target/tricore/translate.c | 7 +- target/unicore32/helper.c | 10 - target/unicore32/helper.h | 3 - target/unicore32/translate.c | 6 +- target/xtensa/helper.h | 2 - target/xtensa/op_helper.c | 13 - target/xtensa/translate.c | 4 +- tcg-runtime.c | 40 +++ tcg/README | 41 ++- tcg/aarch64/tcg-target.h | 10 + tcg/aarch64/tcg-target.inc.c | 91 +++++- tcg/arm/tcg-target.h | 41 ++- tcg/arm/tcg-target.inc.c | 121 ++++--- tcg/i386/tcg-target.h | 17 + tcg/i386/tcg-target.inc.c | 732 +++++++++++++++++++++++++++--------------- tcg/ia64/tcg-target.h | 10 + tcg/ia64/tcg-target.inc.c | 28 +- tcg/mips/tcg-target.h | 5 + tcg/mips/tcg-target.inc.c | 66 +++- tcg/optimize.c | 94 ++++++ tcg/ppc/tcg-target.h | 13 + tcg/ppc/tcg-target.inc.c | 117 ++++++- tcg/s390/tcg-target.h | 128 ++++---- tcg/s390/tcg-target.inc.c | 173 ++++++---- tcg/sparc/tcg-target.h | 10 + tcg/sparc/tcg-target.inc.c | 28 +- tcg/tcg-op.c | 692 ++++++++++++++++++++++++++++++++++++++- tcg/tcg-op.h | 42 +++ tcg/tcg-opc.h | 10 + tcg/tcg-runtime.h | 9 + tcg/tcg.c | 173 +++++----- tcg/tcg.h | 14 +- tcg/tci/tcg-target.h | 10 + tcg/tci/tcg-target.inc.c | 25 +- tests/.gitignore | 1 + tests/Makefile.include | 2 + tests/test-bitcnt.c | 140 ++++++++ 82 files changed, 2580 insertions(+), 1111 deletions(-) create mode 100644 tests/test-bitcnt.c
Signature · 1 line
2.9.3