From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGTNk-0001hQ-De for qemu-devel@nongnu.org; Thu, 20 Feb 2014 08:09:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGTNW-0007kZ-Dt for qemu-devel@nongnu.org; Thu, 20 Feb 2014 08:09:40 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:53224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGTNW-0007hq-3x for qemu-devel@nongnu.org; Thu, 20 Feb 2014 08:09:26 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 20 Feb 2014 13:09:24 -0000 Message-ID: <5305FE77.30208@fr.ibm.com> Date: Thu, 20 Feb 2014 14:09:11 +0100 From: Cedric Le Goater MIME-Version: 1.0 References: <1392901291-11925-1-git-send-email-clg@fr.ibm.com> <38624BCC-C1F3-433F-8BA2-5AC6A0A8007B@suse.de> In-Reply-To: <38624BCC-C1F3-433F-8BA2-5AC6A0A8007B@suse.de> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: [Qemu-devel] [PATCH] target-ppc: add extended opcodes for dcbt List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "list@suse.de:PowerPC" , QEMU Developers On 02/20/2014 02:07 PM, Alexander Graf wrote: > > On 20.02.2014, at 14:01, Cédric Le Goater wrote: > >> The latest glibc provides a memrchr routine using an extended opcode >> of the 'dcbt' instruction : >> >> 00000000000a7cc0 : >> a7cc0: 11 00 4c 3c addis r2,r12,17 >> a7cc4: b8 f8 42 38 addi r2,r2,-1864 >> a7cc8: 14 2a e3 7c add r7,r3,r5 >> a7ccc: d0 00 07 7c neg r0,r7 >> a7cd0: ff ff e7 38 addi r7,r7,-1 >> a7cd4: 78 1b 6a 7c mr r10,r3 >> a7cd8: 24 06 e6 78 rldicr r6,r7,0,56 >> a7cdc: 60 00 20 39 li r9,96 >> a7ce0: 2c 32 09 7e dcbtt r9,r6 >> .... >> >> which breaks grep, and other commands, in TCG mode : >> >> invalid bits: 02000000 for opcode: 1f - 16 - 08 (7e09322c) 00003fff799feca0 >> >> This patch adds the extended opcodes as no-ops just like the 'dcbt' >> instruction. Other 'dcb*' instructions might be impacted but they >> have not showed up yet. >> >> Signed-off-by: Cédric Le Goater > > Please also remove the 0x02 bit from dcbtst. I don't see anything in 2.07 > indicating that that bit should be reserved and I prefer to have those two > instructions be consistent with each other. ok. I will send a v2. Thanks, C.