From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57931) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBMy2-0007au-B2 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 05:13:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBMy0-0006Yk-Rt for qemu-devel@nongnu.org; Fri, 01 Mar 2013 05:13:30 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:57988) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBMy0-0006Yb-HS for qemu-devel@nongnu.org; Fri, 01 Mar 2013 05:13:28 -0500 Message-ID: <51307F46.4080606@adacore.com> Date: Fri, 01 Mar 2013 11:13:26 +0100 From: Fabien Chouteau MIME-Version: 1.0 References: <512E3637.6070609@adacore.com> <512E4170.4070003@adacore.com> <201302272049.59409.paul@codesourcery.com> <512F6336.6090206@adacore.com> <512F965B.1000007@adacore.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [ARM] Cortex-R4F and VFP3-D16 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Paul Brook , =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= , "qemu-devel@nongnu.org" On 02/28/2013 07:42 PM, Peter Maydell wrote: > On 28 February 2013 17:39, Fabien Chouteau wrote: >> On 02/28/2013 03:16 PM, Peter Maydell wrote: >>> On 28 February 2013 14:01, Fabien Chouteau wrote: >>>> In fact I'm >>>> working on a big-endian R4F (TMS570) and I have endianness issue in the >>>> communication with GDB. >>> >>> If you're also trying to get big-endian mode to work (linux-user >>> mode or system emulation?) you may have more problems than merely >>> implementing R4 support or VFP-D16 :-) > >> I already built qemu-system-armeb, and implemented few devices of the >> TMS570 (rti, sci, and vim). Besides this GDB issue I have no endianness >> problem so far. > > This is probably some combination of luck and insufficient testing. > If you submit some patches I will review them :-) > Well my goal is not to test every ARM cpu and every devices in big-endian. I only need a small subset of TMS570: - Cortex-R4F without MPU - Timers (RTI) - Serial port (SCI) - Interrupt manager (RTI) and everything works good so far. > How are you handling the SCTLR IE and EE bits? > I did nothing, as far as I know it's not possible to switch endianness in QEMU. TMS570 are configured for big-endian only, so this is not a problem for me. >>> Are you planning to do the v7 PMSA support? > >> I don't know what that is, but I'll take a look :) > > It's the Memory Protection Unit -- QEMU currently only has the > old v5 MPU, and register_cpu_regs_for_features() will assert > if your CPU is v6 or v7 and has the FEATURE_MPU bit set. > If you're putting in system emulation for an R4 then you must > implement this (and I'm surprised you've managed to get anything > significant to run without it). > The programs I run don't need MPU, so for the moment I have no plan to implement PMSA. Regards, -- Fabien Chouteau