Received: from eggs.gnu.org ([2001:4830:134:3::10]:59015) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwtZn-0005tn-OY for qemu-devel@nongnu.org; Wed, 19 Oct 2016 12:18:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwtZk-0006lZ-Jk for qemu-devel@nongnu.org; Wed, 19 Oct 2016 12:18:47 -0400 Received: from mail-qt0-x244.google.com ([2607:f8b0:400d:c0d::244]:33556) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwtZk-0006ko-DD for qemu-devel@nongnu.org; Wed, 19 Oct 2016 12:18:44 -0400 Received: by mail-qt0-x244.google.com with SMTP id m5so1071251qtb.0 for ; Wed, 19 Oct 2016 09:18:44 -0700 (PDT) Sender: Richard Henderson References: <20160927233049.5429-1-marex@denx.de> <20160927233049.5429-2-marex@denx.de> <20d61df8-b345-b097-8d9b-4a619849d86c@twiddle.net> <82ddeb82-768b-57d1-5962-a6940e5001c7@denx.de> <496742f4-af10-e029-62a2-f2c5054c9303@twiddle.net> <15816d97-1ea9-44df-01d0-10ee10430af2@denx.de> <5dacaa8f-646f-9bce-f362-1d5927893f73@denx.de> <434bbc7d-2a13-0253-0af0-151e43a89e16@twiddle.net> From: Richard Henderson Message-ID: <381a7eba-2b34-9e37-16d5-8e15bdbf2ec7@twiddle.net> Date: Wed, 19 Oct 2016 09:18:40 -0700 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/7] nios2: Add architecture emulation support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marek Vasut , qemu-devel@nongnu.org Cc: Jeff Da Silva , Chris Wulff , Sandra Loosemore , Yves Vandervennet , Ley Foon Tan On 10/18/2016 07:31 PM, Marek Vasut wrote: >> Processing a little more data can be preferable to fewer branch >> prediction failures. And the best way to avoid those is to not have the >> branch at all. Especially when it's unlikely that the data will be >> created in the first place. > > OK, but I need to make sure stores to ZERO register are ignored, right ? Yes. Just remember that since nios2 doesn't have condition codes, where side effects of an instruction can be useful alone, the *only* likely case of ZERO as a destination register is in the (designated) NOP psuedo-op. r~