Received: from eggs.gnu.org ([2001:4830:134:3::10]:42158) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8XnW-0001vt-MV for qemu-devel@nongnu.org; Tue, 06 Jan 2015 12:20:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y8XnR-0002eY-U9 for qemu-devel@nongnu.org; Tue, 06 Jan 2015 12:20:02 -0500 Received: from mail-qa0-x22a.google.com ([2607:f8b0:400d:c00::22a]:44416) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y8XnR-0002eQ-Pi for qemu-devel@nongnu.org; Tue, 06 Jan 2015 12:19:57 -0500 Received: by mail-qa0-f42.google.com with SMTP id n8so16765131qaq.1 for ; Tue, 06 Jan 2015 09:19:57 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Programmingkid In-Reply-To: Date: Tue, 6 Jan 2015 12:19:54 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <3154DC97-3B67-4DBF-BD02-C64E4A9591E3@gmail.com> <77FFD738-1433-4B15-8522-C1EA965B774B@gmail.com> <122C8E58-48F5-4A54-B0AF-A826492D73B6@gmail.com> Subject: Re: [Qemu-devel] Gives user ability to select endian format for video display - fixes Mac OS X guest color issue. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel qemu-devel On Jan 6, 2015, at 11:46 AM, Peter Maydell wrote: > On 6 January 2015 at 16:30, Programmingkid = wrote: >> I was doing some searching and thought I should show you this: >> file: vga.c >>=20 >> This indicates that all operations are expected to be in the little = endian format. >=20 > That controls the endianness to be used when writing words to > the VGA registers, which is not the same as the endianness of > the pixel format (which is what your previous patch was affecting). >=20 > See the comment in vga_common_init(): >=20 > /* > * Set default fb endian based on target, could probably be turned > * into a device attribute set by the machine/platform to remove > * all target endian dependencies from this file. > */ > #ifdef TARGET_WORDS_BIGENDIAN > s->default_endian_fb =3D true; > #else > s->default_endian_fb =3D false; > #endif >=20 > What do we sent default_endian_fb to in the configuration that > doesn't give the right colours, and if we set it to the other > setting does it work? >=20 > -- PMM After investigating the TARGET_WORDS_BIGENDIAN code, I noticed that = s->default_endian_fb was being set to true. So I undefined the macro and = then ran QEMU. The i386 target showed no change in colors. The ppc = target still had the same incorrect colors. Sorry, this doesn't fix the = problem.=20