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.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=no 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 14BC2C433E0 for ; Tue, 9 Mar 2021 16:47:29 +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 916E86522B for ; Tue, 9 Mar 2021 16:47:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 916E86522B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=trusted-objects.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJfW3-0004rp-1K for qemu-devel@archiver.kernel.org; Tue, 09 Mar 2021 11:47:27 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38960) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJen6-0005Kr-Fs; Tue, 09 Mar 2021 11:01:00 -0500 Received: from mailex.trusted-objects.com ([149.202.244.204]:34756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1lJen4-0004RH-FA; Tue, 09 Mar 2021 11:01:00 -0500 Received: from [192.170.0.219] (88.127.245.42) by S76918.EX76918.lan (2001:41d0:117:dd00::95ca:f4cc) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P521) id 15.1.2176.2; Tue, 9 Mar 2021 17:00:56 +0100 Subject: Re: Malfunctionning qemu-system-arm ? To: Alistair Francis References: <20210211141515.8755-1-peter.maydell@linaro.org> <14af0670-caaf-caf1-0b90-fb10c7db13b0@trusted-objects.com> From: vincent Dupaquis Message-ID: <9a51ba35-f01a-ebcd-efe5-bf1e0a94743c@trusted-objects.com> Date: Tue, 9 Mar 2021 17:00:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: fr-FR X-Originating-IP: [88.127.245.42] X-ClientProxiedBy: S76918.EX76918.lan (2001:41d0:117:dd00::95ca:f4cc) To S76918.EX76918.lan (2001:41d0:117:dd00::95ca:f4cc) Received-SPF: none client-ip=149.202.244.204; envelope-from=v.dupaquis@trusted-objects.com; helo=mailex.trusted-objects.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: qemu-arm , "qemu-devel@nongnu.org Developers" Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Alistair, I am pretty sure that stepping-in somehow solves the issue, I did want to see where the problem appeared and this behaviour was making it very difficult to spot :/ Regards, Vincent. Le 09/03/2021 à 15:19, Alistair Francis a écrit : > On Mon, Feb 15, 2021 at 11:37 AM vincent Dupaquis > wrote: >> Hello, >> >> I am using qemu-system-arm with a netduino2 target, supposingly >> integrating a STM32F2xx chip. >> >> I tested using the STM HAL in order to make a simple program run, >> and I just failed to have it running correctly, it satyed stuck on the >> starting HAL_init() call. >> >> Debugging the code, it appeared that stepping-in was making the code >> work while when running it it failed (stayed stuck in an infinite loop, >> but no obvious arm violations). >> >> Has anyone any idea of what could be the cause for this ? I am using >> the latest STM32 HAL, with a qemu version 5.1.0 on a Ubuntu 20.04 >> machine. What is the level of support this type of target is supposed to >> have, and posibly which limitations should I take into account ? > Hey Vincent, > > The model was never tested with the HAL. HALs commonly have infinite > loops inside them and it seems like you have hit one of them where the > HAL is waiting on some bit to change. I'm surprised that single > stepping fixes the problem though. > > You will probably need to figure out where the loop is occuring > (either through GDB or prints/assembly/execution output), after which > it should be possible to fix the hang. > > Alistair > >> Best regards, >> Vincent. >> >> >> -- >> >> *Vincent Dupaquis* >> Software security & Cryptography expert >> 06 24 58 17 05 >> /Europarc de Pichaury Bâtiment B8 1330 rue Guillibert Gautier de la >> Lauzière 13290 Aix-en-Provence/ >> >> www.trusted-objects.com >> -- *Vincent Dupaquis* Software security & Cryptography expert 06 24 58 17 05 /Europarc de Pichaury Bâtiment B8 1330 rue Guillibert Gautier de la Lauzière 13290 Aix-en-Provence/ www.trusted-objects.com