qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/7] tcg: conditional set and move opcodes
@ 2009-12-17  1:19 Richard Henderson
  2009-12-16  0:34 ` [Qemu-devel] [PATCH 1/7] tcg: Generic support for conditional set and conditional move Richard Henderson
                   ` (7 more replies)
  0 siblings, 8 replies; 21+ messages in thread
From: Richard Henderson @ 2009-12-17  1:19 UTC (permalink / raw)
  To: qemu-devel

This patch series adds support for setcond (aka setcc) and
movcond (aka cmov) opcodes to TCG.

These new opcodes are considered "required" by the backend,
because expanding them at the tcg level breaks the basic block.
There might be some way to emulate within tcg internals, but
that doesn't seem worthwhile, as essentially all hosts have
some form of support for these.

I've implemented support for the new opcodes within the x86_64,
i386, and sparc tcg backends.  The later is untested due to 
lack of hardware and failure of the build system to cross-compile.
However, it should be a decent starting point for whoever can.

I've implementing support for the new opcodes within the alpha,
i386 and mips translators.  The translations work, as far as I
can tell from linux-user-test.

Comments?


r~


Richard Henderson (7):
  tcg: Generic support for conditional set and conditional move.
  tcg-amd64: Implement setcond and movcond.
  target-alpha: Use setcond/movcond in integer compares and cmoves.
  tcg-i386: Implement setcond, movcond, setcond2.
  tcg-sparc: Implement setcond, movcond, setcond2, brcond2.
  target-i386: Use setcond and movcond.
  target-mips: Use setcond and movcond.

 elf.h                    |    2 +
 target-alpha/translate.c |   66 ++++----
 target-i386/translate.c  |  192 ++++++++++------------
 target-mips/translate.c  |  124 ++++++++-------
 tcg/README               |   16 ++-
 tcg/i386/tcg-target.c    |  280 ++++++++++++++++++++++++++------
 tcg/sparc/tcg-target.c   |  415 ++++++++++++++++++++++++++++++++++++++++------
 tcg/tcg-op.h             |   91 ++++++++++
 tcg/tcg-opc.h            |    5 +
 tcg/tcg.c                |   23 ++-
 tcg/tcg.h                |    5 +
 tcg/x86_64/tcg-target.c  |   65 +++++++-
 12 files changed, 973 insertions(+), 311 deletions(-)

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2009-12-20 11:06 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-17  1:19 [Qemu-devel] [PATCH 0/7] tcg: conditional set and move opcodes Richard Henderson
2009-12-16  0:34 ` [Qemu-devel] [PATCH 1/7] tcg: Generic support for conditional set and conditional move Richard Henderson
2009-12-16  0:35 ` [Qemu-devel] [PATCH 2/7] tcg-amd64: Implement setcond and movcond Richard Henderson
2009-12-16  0:36 ` [Qemu-devel] [PATCH 3/7] target-alpha: Use setcond/movcond in integer compares and cmoves Richard Henderson
2009-12-16 23:17 ` [Qemu-devel] [PATCH 4/7] tcg-i386: Implement setcond, movcond, setcond2 Richard Henderson
2009-12-16 23:26 ` [Qemu-devel] [PATCH 5/7] tcg-sparc: Implement setcond, movcond, setcond2, brcond2 Richard Henderson
2009-12-19 10:31   ` Blue Swirl
2009-12-19 17:47     ` Richard Henderson
2009-12-19 21:25       ` Blue Swirl
2009-12-19 22:52         ` Richard Henderson
2009-12-20 11:06           ` Blue Swirl
2009-12-16 23:28 ` [Qemu-devel] [PATCH 6/7] target-i386: Use setcond and movcond Richard Henderson
2009-12-16 23:29 ` [Qemu-devel] [PATCH 7/7] target-mips: " Richard Henderson
2009-12-17 15:32 ` [Qemu-devel] [PATCH 0/7] tcg: conditional set and move opcodes malc
2009-12-17 15:37   ` Laurent Desnogues
2009-12-17 17:07   ` Richard Henderson
2009-12-17 17:47     ` malc
2009-12-17 18:09       ` Richard Henderson
2009-12-17 17:48     ` Richard Henderson
2009-12-18 15:40     ` malc
2009-12-18 16:05       ` Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).