Received: from [140.186.70.92] (port=60089 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OCYpZ-0002pq-3Y for qemu-devel@nongnu.org; Thu, 13 May 2010 09:52:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OCYpV-0000wU-D7 for qemu-devel@nongnu.org; Thu, 13 May 2010 09:52:04 -0400 Received: from mail.serverraum.org ([78.47.150.89]:49640) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OCYpV-0000wL-1z for qemu-devel@nongnu.org; Thu, 13 May 2010 09:52:01 -0400 From: Michael Walle Date: Thu, 13 May 2010 15:51:58 +0200 References: <201004222338.06194.michael@walle.cc> <4BEBE93C.1060602@web.de> <4BEBF2AF.5010902@web.de> In-Reply-To: <4BEBF2AF.5010902@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201005131551.58353.michael@walle.cc> Subject: [Qemu-devel] Re: Commit 9c9bb6c89d4 breaks code execution from flash List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: qemu-devel@nongnu.org Am Thursday 13 May 2010 14:38:07 schrieben Sie: > >> Right, I came to the same conclusion based on chip I'm using for the > >> Musicpal model. Working on a proper fix - now that I think to have found > >> a solution for the XIP vs. mode switch conflict. nice :) i'll try it as soon as it's ready. > > Wait! Access to ident[0..3] is already correct as those fields are > > stored and returned as 16-bit values. I guess you just did not pass the > > proper IDs when registering your pflash_cfi02 instance. > ... or you suffered from a be/le issue. In contrast to data, the ID is > not swapped according to the byte order that was specified during init. > Does your target byte order differ from your host? oh sorry, i wrongly assumed id[0..3] were the bytes for the manufacturer/device id. using the correct 16 bit values for id0 and id2 works perfectly. -- michael