From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNp1o-00055q-As for qemu-devel@nongnu.org; Wed, 12 Mar 2014 15:41:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNp1j-0004zg-QQ for qemu-devel@nongnu.org; Wed, 12 Mar 2014 15:41:24 -0400 Received: from mail-qc0-x231.google.com ([2607:f8b0:400d:c01::231]:41024) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNp1j-0004zc-ML for qemu-devel@nongnu.org; Wed, 12 Mar 2014 15:41:19 -0400 Received: by mail-qc0-f177.google.com with SMTP id w7so11834657qcr.36 for ; Wed, 12 Mar 2014 12:41:19 -0700 (PDT) Sender: Richard Henderson Message-ID: <5320B85B.4030202@twiddle.net> Date: Wed, 12 Mar 2014 12:41:15 -0700 From: Richard Henderson MIME-Version: 1.0 References: <5320ADCF.5000406@weilnetz.de> In-Reply-To: <5320ADCF.5000406@weilnetz.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Raspbian in QEMU List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil , Peter Hanzel , Peter Maydell Cc: QEMU Developers On 03/12/2014 11:56 AM, Stefan Weil wrote: > Am 12.03.2014 19:05, schrieb Peter Hanzel: >> Thanks. >> >> Now it makes sense. Also google now works and led me to >> https://github.com/bavison/arm-mem. >> And there is SETEND used. >> > > It might be possible to handle that special case in QEMU without > implementing setend: > > That instruction is only used in the implementation of function memcmp. > When TCG detects a setend instruction, it could check whether the > surrounding code has the signature of that memcmp implementation and add > code which calls a memcmp helper function. The setend instruction and > all the following code of memcmp would be handled as if it were a single > special multi byte machine instruction. Ew. No. It would be easier to just implement setend, even if badly. > PS. Link to previous discussion on setend: > https://lists.gnu.org/archive/html/qemu-trivial/2013-08/msg00086.html > I cc Richard because he was / is involved, too. For my part, the endian-aware load/store opcodes I alluded to last August are now in. r~