From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59790) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XenZE-00048i-7V for qemu-devel@nongnu.org; Thu, 16 Oct 2014 12:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XenZD-0006WX-KV for qemu-devel@nongnu.org; Thu, 16 Oct 2014 12:06:20 -0400 Received: from mail-vc0-x22d.google.com ([2607:f8b0:400c:c03::22d]:56832) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XenZD-0006WT-FU for qemu-devel@nongnu.org; Thu, 16 Oct 2014 12:06:19 -0400 Received: by mail-vc0-f173.google.com with SMTP id ij19so2917391vcb.32 for ; Thu, 16 Oct 2014 09:06:16 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <543F232A.6080104@gmail.com> From: Pranith Kumar Date: Thu, 16 Oct 2014 12:05:46 -0400 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] Counting barrier instructions in ARM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: qemu-devel On Wed, Oct 15, 2014 at 10:12 PM, Max Filippov wrote: > On Thu, Oct 16, 2014 at 6:00 AM, Pranith Kumar wrote: >>>> + tcg_gen_add_i32(cpu_fence_count, cpu_fence_count, 1); >>> >>> tcg_gen_addi_i32, as you're adding an immediate. >>> Enabling TCG debug would catch such errors. >>> Not sure if that will fix crashing, but it should improve accuracy (: >> >> I had that before the change to tcg_gen_add_i32 and the crashes were >> still there. But yes, this needs to be changed to use addi. > > Got backtraces of your crashes? > These bugs seem to be Heisenbugs. As Peter Maydell pointed out, apparently multi-threaded user mode execution is not supported. I will try to use system mode. Thanks! -- Pranith