Received: from eggs.gnu.org ([2001:4830:134:3::10]:58126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WseYX-00038r-Lt for qemu-devel@nongnu.org; Thu, 05 Jun 2014 16:46:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WseYS-0000EX-7I for qemu-devel@nongnu.org; Thu, 05 Jun 2014 16:46:37 -0400 Message-ID: <5390D688.7000800@ilande.co.uk> Date: Thu, 05 Jun 2014 21:43:52 +0100 From: Mark Cave-Ayland MIME-Version: 1.0 References: <1401148882-5838-1-git-send-email-agraf@suse.de> In-Reply-To: <1401148882-5838-1-git-send-email-agraf@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] macio: Fix timer endianness List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf , qemu-devel@nongnu.org Cc: John Arbuckle , qemu-ppc@nongnu.org On 27/05/14 01:01, Alexander Graf wrote: > The timer registers on our KeyLargo macio emulation are read as byte reversed > from the big endian guest, so we better expose them endian reversed as well. > > This fixes initial hickups of booting Mac OS X with -M mac99 for me. > > Signed-off-by: Alexander Graf > --- > hw/misc/macio/macio.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c > index 7f99aa0..47f45f5 100644 > --- a/hw/misc/macio/macio.c > +++ b/hw/misc/macio/macio.c > @@ -259,7 +259,7 @@ static uint64_t timer_read(void *opaque, hwaddr addr, unsigned size) > static const MemoryRegionOps timer_ops = { > .read = timer_read, > .write = timer_write, > - .endianness = DEVICE_NATIVE_ENDIAN, > + .endianness = DEVICE_LITTLE_ENDIAN, > }; > > static int macio_newworld_initfn(PCIDevice *d) Amazing! This patch appears to fix booting my Darwin 8.01 test ISO with -M mac99 so it now gets to the installer - nice work! Tested-by: Mark Cave-Ayland ATB, Mark.