qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Richard Henderson <rth@twiddle.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 0/6] TCG compile fixes and optimize cleanup
Date: Wed, 17 Aug 2011 14:11:44 -0700	[thread overview]
Message-ID: <1313615510-10615-1-git-send-email-rth@twiddle.net> (raw)

As discussed elsewhere, one way to tidy up tcg/optimize.c
is to always provide the enum names, even if the host does
not support the operation.

As a sanity check, I wanted to include a test to make sure
that we never tried to output an opcode that the target
does not handle.  I did this via a bit in the TCGOpDef flags.
In order to get that set, I changed all of the TCG_TARGET_HAS*
macros to be true/false rather than def/undef.

That allowed a further cleanup to change ifdefs into C IFs.

Unfortunately, it wasn't really possible to split this into
smaller pieces.  Using the C IFs requires the enums be 
present, even if unused.

I cross-compiled --target-list=i386-softmmu,i386-linux-user
for each of the tcg hosts.  In the process I discovered a
number of pure compilation errors.


r~


Richard Henderson (6):
  tcg: Add and use TCG_OPF_64BIT.
  tcg: Always define all of the TCGOpcode enum members.
  tcg: Constant fold neg, andc, orc, eqv, nand, nor.
  tcg-hppa: Fix CPU_TEMP_BUF_NLONGS oversight.
  tcg-ia64: Fix typos in AREG0 setup in prologue.
  tcg-arm: Make tcg_out_addi inline

 tcg/arm/tcg-target.c   |    2 +-
 tcg/arm/tcg-target.h   |   30 +-
 tcg/hppa/tcg-target.c  |    2 +-
 tcg/hppa/tcg-target.h  |   29 +-
 tcg/i386/tcg-target.h  |   68 ++--
 tcg/ia64/tcg-target.c  |    4 +-
 tcg/ia64/tcg-target.h  |   66 ++--
 tcg/mips/tcg-target.h  |   31 +-
 tcg/optimize.c         |  260 +++-----------
 tcg/ppc/tcg-target.h   |   31 +-
 tcg/ppc64/tcg-target.h |   68 ++--
 tcg/s390/tcg-target.h  |   68 ++--
 tcg/sparc/tcg-target.h |   68 ++--
 tcg/tcg-op.h           |  946 +++++++++++++++++++++++-------------------------
 tcg/tcg-opc.h          |  242 +++++--------
 tcg/tcg.c              |    6 +-
 tcg/tcg.h              |   59 +++-
 17 files changed, 886 insertions(+), 1094 deletions(-)

-- 
1.7.4.4

             reply	other threads:[~2011-08-17 21:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-17 21:11 Richard Henderson [this message]
2011-08-17 21:11 ` [Qemu-devel] [PATCH 1/6] tcg: Add and use TCG_OPF_64BIT Richard Henderson
2011-08-17 21:11 ` [Qemu-devel] [PATCH 2/6] tcg: Always define all of the TCGOpcode enum members Richard Henderson
2011-08-23 17:11   ` Peter Maydell
2011-08-23 17:21     ` Richard Henderson
2011-08-23 17:43     ` [Qemu-devel] [PATCH] tcg: Update --enable-debug for TCG_OPF_NOT_PRESENT Richard Henderson
2011-08-23 18:41       ` Peter Maydell
2011-08-23 19:31         ` Edgar E. Iglesias
2011-08-17 21:11 ` [Qemu-devel] [PATCH 3/6] tcg: Constant fold neg, andc, orc, eqv, nand, nor Richard Henderson
2011-08-17 21:11 ` [Qemu-devel] [PATCH 4/6] tcg-hppa: Fix CPU_TEMP_BUF_NLONGS oversight Richard Henderson
2011-08-17 21:11 ` [Qemu-devel] [PATCH 5/6] tcg-ia64: Fix typos in AREG0 setup in prologue Richard Henderson
2011-08-17 21:11 ` [Qemu-devel] [PATCH 6/6] tcg-arm: Make tcg_out_addi inline Richard Henderson
2011-08-19 23:51   ` Peter Maydell
2011-08-20  0:10     ` andrzej zaborowski
2011-08-20  4:19       ` Peter Maydell
2011-08-21 19:15 ` [Qemu-devel] [PATCH 0/6] TCG compile fixes and optimize cleanup Blue Swirl

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1313615510-10615-1-git-send-email-rth@twiddle.net \
    --to=rth@twiddle.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).