From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752533AbcF1J5r (ORCPT ); Tue, 28 Jun 2016 05:57:47 -0400 Received: from gate.crashing.org ([63.228.1.57]:33750 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752116AbcF1J5f (ORCPT ); Tue, 28 Jun 2016 05:57:35 -0400 Message-ID: <1467106510.20278.119.camel@kernel.crashing.org> Subject: Re: arch/powerpc/xmon/dis-asm.h: 2 * wrong specifiers ? From: Benjamin Herrenschmidt To: David Binderman , Michael Ellerman Cc: paulus@samba.org, linuxppc-dev@lists.ozlabs.org, Linux Kernel Mailing List , dcb314@hotmail.com Date: Tue, 28 Jun 2016 19:35:10 +1000 In-Reply-To: References: <1467086888.32607.9.camel@ellerman.id.au> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.20.3 (3.20.3-1.fc24.1) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2016-06-28 at 08:06 +0100, David Binderman wrote: > > I don't know the code, but given that insn is unsigned long and so > can go > past 32 bits, using a cast to unsigned int might throw away the > possibly important > upper bits. our instructions are only ever 32-bits. That xmon code is ancient and originated from 32-bits stuff. In fact some of Paulus earliest xmons might even have run on platforms where int is 16 bits :-) Cheers, Ben.