From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:34256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIMmV-0005u6-Gb for qemu-devel@nongnu.org; Wed, 20 Mar 2013 13:26:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UIMmT-00077J-Qe for qemu-devel@nongnu.org; Wed, 20 Mar 2013 13:26:31 -0400 Received: from mel.act-europe.fr ([194.98.77.210]:54593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UIMmT-00076o-IK for qemu-devel@nongnu.org; Wed, 20 Mar 2013 13:26:29 -0400 Message-ID: <5149F143.9000506@adacore.com> Date: Wed, 20 Mar 2013 18:26:27 +0100 From: Fabien Chouteau MIME-Version: 1.0 References: <5149DE36.3060301@adacore.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Cortex-M4F Floating Point system registers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "qemu-devel@nongnu.org" On 03/20/2013 05:43 PM, Peter Maydell wrote: > On 20 March 2013 16:05, Fabien Chouteau wrote: >> I'm looking at the ARMv7-M profile and the implementation in QEMU. >> Looks like M3 is supported and I'd like to work on M4F (FP context save >> and lazy FP context save). > > This is going to be interesting because we don't currently have > any mechanisms implemented for 'trap on attempt to use FP insn'. > (Not impossible, just the code isn't there at the moment.) > OK, if you can give me any insight of what needs to be done for M4F and how should I do it, don't hesitate. >> I wonder how the FPU system registers, and more generally how the >> co-processor registers are implemented in QEMU. >> >> For example in the Cortex-M4 TRM it seems like FP system registers are >> mapped in memory. I don't see that implemented in QEMU. > > Yes, M profile maps lots of sysregs in memory. Mostly we implement > these in hw/armv7m_nvic.c. It's kind of ugly the way that code > reaches into the CPU implementation though. > Thanks, I'll take a look at this. -- Fabien Chouteau