From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNjuE-0008BP-TJ for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:13:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNju9-0004T8-Lb for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:13:14 -0400 Received: from static.88-198-71-155.clients.your-server.de ([88.198.71.155]:33620 helo=socrates.bennee.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNju9-0004Su-Fe for qemu-devel@nongnu.org; Wed, 12 Mar 2014 10:13:09 -0400 From: alex.bennee@linaro.org Date: Wed, 12 Mar 2014 14:12:55 +0000 Message-Id: <1394633577-18053-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 Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= 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