From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_2 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 23C0CCA9EAC for ; Sat, 19 Oct 2019 11:11:47 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EC1C1222C2 for ; Sat, 19 Oct 2019 11:11:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org EC1C1222C2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=tuxfamily.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:53240 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLmeA-0002Fd-3s for qemu-devel@archiver.kernel.org; Sat, 19 Oct 2019 07:11:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54656) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iLmcz-0001QG-0I for qemu-devel@nongnu.org; Sat, 19 Oct 2019 07:10:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iLmcw-0003lq-I1 for qemu-devel@nongnu.org; Sat, 19 Oct 2019 07:10:32 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:36648) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iLmcw-0003l8-C5 for qemu-devel@nongnu.org; Sat, 19 Oct 2019 07:10:30 -0400 Received: by mail-wr1-f67.google.com with SMTP id w18so8242222wrt.3 for ; Sat, 19 Oct 2019 04:10:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=aFiGabuGZxVdEPcndlENag4mRy54ZqWUQoFfGxfRgNM=; b=X934+luM/nOMTyxoSGLofj2JtOSsw4T9ZK8WRust2klDI9sopAx/rvmY6XaKjYlVsR d9M1qNnzZhA9QKLrPsMn3/QK4/DbyH+ZDvCfUkbsbxn9K4dGTpCZATT/HW0DJglNWh/u PbDVq/yQ8vnAXSBt/v0XXUe5rXVC1QwjJ3WXlMBXlpgsisJepryVrz/6S2C3XRcWdhyV hdfnQuQi+McQQRFUOjDQRfLAFYt/JVaQp9EDUKX0k2IV/f4LwzVi9Yh3ftUkYoXuBLnD 6lRZ2mwtWTH7ecQOJFrYAFnPBRAvK7bskFijlvtiVKJ1YG/oxKsuumae+6JwAzME2qaV sI3A== X-Gm-Message-State: APjAAAUCVVx6AY9V03G1RHAUpWjL+hGEg/0mIwNJteLoNTxdqyW0M7Mu NesCcX99YEiffmwpnMgvB8g= X-Google-Smtp-Source: APXvYqx03/n8rAwQ9TFWS6TOGZ58yOqQLuepMZjD7F8JyNrFVdwt2VgfL5Vk/FSx7yY8pl/2BKja6g== X-Received: by 2002:a5d:498a:: with SMTP id r10mr5187911wrq.260.1571483429416; Sat, 19 Oct 2019 04:10:29 -0700 (PDT) Received: from thl530 (x2f7f4ae.dyn.telefonica.de. [2.247.244.174]) by smtp.gmail.com with ESMTPSA id u10sm7016385wmm.0.2019.10.19.04.10.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2019 04:10:29 -0700 (PDT) Date: Sat, 19 Oct 2019 13:10:27 +0200 From: Thomas Huth To: Peter Maydell Subject: Re: [PATCH 7/8] hw/m68k/mcf5206.c: Switch to transaction-based ptimer API Message-ID: <20191019131027.018dc911@thl530> In-Reply-To: <20191019124859.6a85e220@thl530> References: <20191017132905.5604-1-peter.maydell@linaro.org> <20191017132905.5604-8-peter.maydell@linaro.org> <20191019124859.6a85e220@thl530> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.221.67 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "Edgar E. Iglesias" , Michael Walle , Guan Xuetao , Magnus Damm , qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Am Sat, 19 Oct 2019 12:48:59 +0200 schrieb Thomas Huth : > Am Thu, 17 Oct 2019 14:29:04 +0100 > schrieb Peter Maydell : > > > Switch the mcf5206 code away from bottom-half based ptimers to > > the new transaction-based ptimer API. This just requires adding > > begin/commit calls around the various places that modify the ptimer > > state, and using the new ptimer_init() function to create the timer. > > > > Signed-off-by: Peter Maydell > > --- > > hw/m68k/mcf5206.c | 9 +++++---- > > 1 file changed, 5 insertions(+), 4 deletions(-) > > After applying the patch, I now get an assertion: > > $ qemu-system-m68k -nographic -kernel > ~/tmp/images/image-an5206-big-20000706.bin -M an5206 > > uClinux/COLDFIRE(m5206) > COLDFIRE port done by Greg Ungerer, gerg@moreton.com.au > Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne > KERNEL -> TEXT=0x010000-0x077cb8 DATA=0x077cb8-0x08b0d0 > BSS=0x08b0d0-0x0a2d58 KERNEL -> ROMFS=0x0a2d58-0x183b10 > MEM=0x183b10-0x1fff000 STACK=0x1fff000-0x2000000 qemu-system-m68k: > hw/core/ptimer.c:410: ptimer_transaction_begin: Assertion > `!s->in_transaction || !s->callback' failed. > > Looks like something is still wrong here... FWIW, the image for testing can be found here: https://web.archive.org/web/20181018135822/http://www.uclinux.org/ports/coldfire/image-an5206-big-20000706.bin.gz Thomas