From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51585) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTIul-0001dj-0B for qemu-devel@nongnu.org; Sun, 05 Jun 2011 15:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QTIuj-0004RO-7U for qemu-devel@nongnu.org; Sun, 05 Jun 2011 15:23:10 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:58665) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QTIui-0004RK-T0 for qemu-devel@nongnu.org; Sun, 05 Jun 2011 15:23:09 -0400 Received: by pxi15 with SMTP id 15so296040pxi.33 for ; Sun, 05 Jun 2011 12:23:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <4DEBAF8C.2090502@embedded-brains.de> References: <4DEB5AFF.3010604@embedded-brains.de> <4DEB7F55.9030700@embedded-brains.de> <4DEB900F.5070206@embedded-brains.de> <4DEBAF8C.2090502@embedded-brains.de> Date: Sun, 5 Jun 2011 20:23:06 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] Disable interrupts on Cortex M3 (lm3s6965evb) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Sebastian Huber Cc: qemu-devel@nongnu.org, Paul Brook On 5 June 2011 17:32, Sebastian Huber wrote: > On 05/06/11 16:57, Peter Maydell wrote: >> I agree that the current behaviour is not right. However, to fix >> this problem you need to work on a larger scale than attempting >> to apply two line patches which fix your particular use case. > > I agree, but you have to start somewhere. =C2=A0What is "this problem"? = =C2=A0Is > that we have no execution priority (in the sense of the ARMv7 > architecture, B1.3.2 Exceptions), but instead use a mapping to CPSR_I > and CPSR_F? There is some notion of priority, see gic_update() in hw/arm_gic.c; but it is only within the gic and is not dealing with v7M specific issues. At the moment I am mostly just warning you that you're entering difficult territory; if I have time to read the qemu v7m code more carefully next week I may have more concrete opinions. -- PMM