Skip to content

tcg/i386 haswell improvements

Richard Henderson qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6tcg: Add tcg_reg_alloc_newtcg/tcg.c tcg/tcg.h+46 -130 replies
2/6disas/i386: Fix disassembly of two-byte vex prefixesdisas/i386.c+1 -00 replies
3/6disas/i386: Add disassembly of vex.0f38.f5disas/i386.c+12 -30 replies
4/6disas/i386: Add disassembly of rorxdisas/i386.c+11 -20 replies
5/6tcg/i386: Use pext for extracttcg/i386/tcg-target.h tcg/i386/tcg-target.inc.c+109 -440 replies
6/6tcg/i386: Use pdep for deposittcg/i386/tcg-target.h tcg/i386/tcg-target.inc.c+70 -160 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 for-2.11 0/6] tcg/i386 haswell improvements

We can implement extract and deposit fairly efficiently with the bmi2 pext and pdep instructions.

I did wonder about using bextr and tcg_reg_alloc_new to allocate the register required to hold the parameters. But pdep allows the mask to be stored in the constant pool, and there's the chance that the mask could be re-used, either by another extract or by a deposit.

I have not yet done any profiling on this yet.

r~

Richard Henderson (6):
tcg: Add tcg_reg_alloc_new
disas/i386: Fix disassembly of two-byte vex prefixes disas/i386: Add disassembly of vex.0f38.f5 disas/i386: Add disassembly of rorx tcg/i386: Use pext for extract
tcg/i386: Use pdep for deposit

 tcg/i386/tcg-target.h     |  10 ++-
 tcg/tcg.h                 |   1 +
 disas/i386.c              |  29 ++++--
 tcg/i386/tcg-target.inc.c | 223 +++++++++++++++++++++++++++++++++++-----------
 tcg/tcg.c                 |  58 +++++++++---
 5 files changed, 246 insertions(+), 75 deletions(-)
Signature · 1 line
2.13.3