From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:50256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBOkI-0002Rd-En for qemu-devel@nongnu.org; Fri, 01 Mar 2013 07:07:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UBOkH-0007RH-1U for qemu-devel@nongnu.org; Fri, 01 Mar 2013 07:07:26 -0500 Received: from mel.act-europe.fr ([194.98.77.210]:50433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UBOkG-0007Qs-O8 for qemu-devel@nongnu.org; Fri, 01 Mar 2013 07:07:24 -0500 Message-ID: <513099FA.90605@adacore.com> Date: Fri, 01 Mar 2013 13:07:22 +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> <51307F46.4080606@adacore.com> <51308F1D.1080600@adacore.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 03/01/2013 12:32 PM, Peter Maydell wrote: > On 1 March 2013 11:21, Fabien Chouteau wrote: >> TMS570LS31x/21x Technical Reference Manual: >> >> "The TMS570 family is based on the ARM=C2=AE CortexTM-R4F core. ARM ha= s >> designed this core to be used in big-endian and little-endian systems. >> For the TI TMS570 family, the endianness has been configured to BE32." >=20 > That is confusing, because ARM's R4F Technical Reference Manual > says "The processor does not support word-invariant big-endianness > (BE)-32"... >=20 > (http://translatedcode.wordpress.com/2012/04/02/this-end-up/ > has a quick summary of what the various flavours of ARM > endianness actually mean.) >=20 Confusing indeed. It seems that the documentation is not reliable. Below the text I just quoted, there's an example showing that TMS570 is actually BE8. And this is confirmed by our experience using the real board. > I think you're going to have to run some tests on the actual > hardware to find out what it really does. Specifically, what > are the values of SCTLR.IE, SCTLR.EE and CPSR.E when you think > you're in big-endian mode? (We need to sort out what parts of > the behaviour you're seeing are the CPU itself and what parts > are the SoC/board doing endianness flipping externally to the > CPU.) >=20 SCTLR.IE and SCTLR.EE are both set to 1 at reset and the values cannot be changed. BTW, our run-time works both on QEMU and a real-board, that's also why I'm confident that there are no endianness issue. Regards, --=20 Fabien Chouteau