Skip to content

Define "deposit" tcg operation, v2

Richard Henderson qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 32 repliesIn review

Changes since v1 from the cover letter

* No attempt to pack pos+len into one operand. Updated backends to match this change.

* Example in the README is a bit more complex.

* Define an official tcg_scratch_alloc routine, used by the i386 target for the case in which we need a scratch register. I had said that triggering this wasn't possible with mainline, but I was wrong. The rlwimi example I posted in the other thread hits this case.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tcg: Define "deposit" as an optional operation.tcg/README tcg/tcg-op.h tcg/tcg-opc.h+84 -02 replies
2/7tcg-ppc: Implement deposit operation.tcg/ppc/tcg-target.c tcg/ppc/tcg-target.h+17 -13 replies
3/7tcg-hppa: Implement deposit operation.tcg/hppa/tcg-target.c tcg/hppa/tcg-target.h+53 -60 replies
4/7tcg-ia64: Implement deposit operation.tcg/ia64/tcg-target.c tcg/ia64/tcg-target.h+117 -00 replies
5/7tcg-i386: Implement deposit operation.tcg/i386/tcg-target.c tcg/i386/tcg-target.h tcg/tcg.c+77 -323 replies
6/7target-i386: Use deposit operation.target-i386/translate.c+6 -282 replies
7/7target-ppc: Use deposit operation.target-ppc/translate.c+10 -00 replies

Reviews trailers per patch

2 of 7 patches have a Reviewed-by or Acked-by.

PatchAurelien JarnoEdgar E. Iglesias
1/7A-b A-b
2/7
3/7
4/7
5/7
6/7A-b A-b
7/7

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/7] Define "deposit" tcg operation, v2

Changes since v1:
* No attempt to pack pos+len into one operand. Updated backends to match this change.

* Example in the README is a bit more complex.

* Define an official tcg_scratch_alloc routine, used by the i386 target for the case in which we need a scratch register. I had said that triggering this wasn't possible with mainline, but I was wrong. The rlwimi example I posted in the other thread hits this case.

Aurelien suggested using a shorter name like "dep", but I think that would be more confusing than not. This opcode is not really used enough to warrent cropping 4 characters, in my opinion.

r~

Richard Henderson (7):
tcg: Define "deposit" as an optional operation.
tcg-ppc: Implement deposit operation.
tcg-hppa: Implement deposit operation.
tcg-ia64: Implement deposit operation.
tcg-i386: Implement deposit operation.
target-i386: Use deposit operation.
target-ppc: Use deposit operation.

 target-i386/translate.c |   34 +++-----------
 target-ppc/translate.c  |   10 ++++
 tcg/README              |   14 ++++++
 tcg/hppa/tcg-target.c   |   58 +++++++++++++++++++++---
 tcg/hppa/tcg-target.h   |    1 +
 tcg/i386/tcg-target.c   |   67 ++++++++++++++++++++++++++-
 tcg/i386/tcg-target.h   |    2 +
 tcg/ia64/tcg-target.c   |  115 +++++++++++++++++++++++++++++++++++++++++++++++
 tcg/ia64/tcg-target.h   |    2 +
 tcg/ppc/tcg-target.c    |   17 +++++++-
 tcg/ppc/tcg-target.h    |    1 +
 tcg/tcg-op.h            |   64 ++++++++++++++++++++++++++
 tcg/tcg-opc.h           |    6 +++
 tcg/tcg.c               |   11 +++++
 14 files changed, 364 insertions(+), 38 deletions(-)
Signature · 1 line
1.7.2.3