From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNjXw-0002Ij-4z for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:50:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNjXi-0004Wh-UP for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:50:12 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:33501 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNjXi-0004WI-Oc for qemu-devel@nongnu.org; Wed, 12 Mar 2014 09:49:58 -0400 Received: from localhost ([127.0.0.1] helo=zen.linaro.local) by socrates.bennee.com with esmtp (Exim 4.80) (envelope-from ) id 1WNjXv-00033k-NI for qemu-devel@nongnu.org; Wed, 12 Mar 2014 14:50:11 +0100 From: alex.bennee@linaro.org Date: Wed, 12 Mar 2014 13:49:58 +0000 Message-Id: <1394632200-15633-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RCF PATCH 0/2] Improving TCG debug output List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org From: Alex Bennée Hi, These two patches have been sitting in my personal tree for a while and I thought it was worth soliciting feedback as to their wider usefulness. The first is simply an attempt to make tcg abort failures a little less terse. The second I found useful when I was debugging a complex set of TCG ops for a round, shift and narrow implementation. The alternative was to set up GDB and step through the generated target code (or just infer from the copious dumps). The macro magic might be a bit much though. Alex Bennée (2): tcg: add tcg_abort_dbg() for additional debug info tcg: add debug helpers tcg_debug_dump_i(32|64) Makefile.target | 2 +- target-arm/helper.h | 2 ++ tcg/i386/tcg-target.c | 4 ++-- tcg/optimize.c | 2 +- tcg/tcg-helpers.c | 32 +++++++++++++++++++++++++++++ tcg/tcg-helpers.h | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++ tcg/tcg.h | 7 +++++-- 7 files changed, 100 insertions(+), 6 deletions(-) create mode 100644 tcg/tcg-helpers.c create mode 100644 tcg/tcg-helpers.h -- 1.9.0