Received: from eggs.gnu.org ([2001:4830:134:3::10]:56957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkig-0005QZ-Ut for qemu-devel@nongnu.org; Wed, 12 Mar 2014 11:05:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNkiY-0006qE-HJ for qemu-devel@nongnu.org; Wed, 12 Mar 2014 11:05:22 -0400 Received: from mail-qg0-x22d.google.com ([2607:f8b0:400d:c04::22d]:36693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNkiY-0006pr-DY for qemu-devel@nongnu.org; Wed, 12 Mar 2014 11:05:14 -0400 Received: by mail-qg0-f45.google.com with SMTP id j5so29430162qga.4 for ; Wed, 12 Mar 2014 08:05:13 -0700 (PDT) Sender: Richard Henderson Message-ID: <532077A0.80908@twiddle.net> Date: Wed, 12 Mar 2014 08:05:04 -0700 From: Richard Henderson MIME-Version: 1.0 References: <1394633577-18053-1-git-send-email-alex.bennee@linaro.org> <1394633577-18053-2-git-send-email-alex.bennee@linaro.org> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RCF PATCH 1/2] tcg: add tcg_abort_dbg() for additional debug info List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , =?UTF-8?B?QWxleCBCZW5uw6ll?= Cc: QEMU Developers On 03/12/2014 08:02 AM, Peter Maydell wrote: > This is the wrong place to be diagnosing this. We should be (when > TCG debug is enabled) checking the condition when the tcg_gen_setcond > or tcg_set_brcond function is called, so that you get a useful backtrace > that points directly at the buggy frontend code. I suspect the other > two cases are similar. Indeed. See the asserts in tcg_gen_deposit_i32 for example. r~