From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yh0-x236.google.com (mail-yh0-x236.google.com [IPv6:2607:f8b0:4002:c01::236]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 91C682C00A1 for ; Fri, 13 Dec 2013 02:09:11 +1100 (EST) Received: by mail-yh0-f54.google.com with SMTP id z12so380046yhz.41 for ; Thu, 12 Dec 2013 07:09:07 -0800 (PST) Message-ID: <52A9D17E.3000809@gmail.com> Date: Thu, 12 Dec 2013 09:08:46 -0600 From: Tom Musta MIME-Version: 1.0 To: Paul Mackerras Subject: Re: [V2 PATCH 3/3] powerpc: Fix Unaligned LE Floating Point Loads and Stores References: <1383244738-5986-1-git-send-email-tommusta@gmail.com> <1383244738-5986-4-git-send-email-tommusta@gmail.com> <20131211035440.GA9399@drongo> <20131211045728.GB9399@drongo> In-Reply-To: <20131211045728.GB9399@drongo> Content-Type: text/plain; charset=ISO-8859-1 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 12/10/2013 10:57 PM, Paul Mackerras wrote: > On Wed, Dec 11, 2013 at 02:54:40PM +1100, Paul Mackerras wrote: >> This breaks 32-bit big-endian (as well as making the code longer and >> more complex). > > And in fact none of this code will get executed in little-endian mode > anyway, since we still have this in the middle of emulate_step(): > > /* > * Following cases are for loads and stores, so bail out > * if we're in little-endian mode. > */ > if (regs->msr & MSR_LE) > return 0; > > Paul. > See patch 1/3 to explain how it becomes relevant in LE. I will take another look at the change.