Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2986736pxk; Sun, 4 Oct 2020 20:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwH14fQiZ4T1zWH2C7iZlc5ZbPRodBqM+rTwTJdbJEMvKxyDPP+Xr7eJ6M478k+MAlU/eO7 X-Received: by 2002:a17:906:c191:: with SMTP id g17mr13967455ejz.117.1601869458002; Sun, 04 Oct 2020 20:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601869457; cv=none; d=google.com; s=arc-20160816; b=HsSqdZByUKkqL3yQrYsSNoV2huo4yQAIWFJY8jtmIZkziD6VQAOXwogkLsAu32iZd1 /5ZCScNGbldfrBXV1RFuCv0rxWov8WzE1TqG90Q3bjuqN3mWBimmamCWpANOejqYZQnv 6ZK96GdnCf5Q4Mx1xpkZ1UPcFu+YJCX6pmAY6Rp9DnHP3uA+qkmc8AJgTUTFQKjtELQs 4LPUPUZfGTf+8iZjTM24YTv127idQF4+bgVdP6GFyiwi+LZ6PcVkl3FGMoxcGa7R0BFU cd9oXqNfHmuMbc9u9FF9NUN9NipOvc94Ngkp5PEDp8QCoqWhHC69DYPXGvqvK5HkmnxF CRhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=GkYtMqeyGs/8WGaOwj1knC1pVDSETEGDFWhPdh5MTmY=; b=ZE1lkO3FpvFT6/3t+SNIe3sDQZqwgxasXSgOGZ1wt1Pyqw+OsDYgWVFAbsajEHjDEt oZd5B6AkLwy1JzSrJujAdRBPPyGaKPYIbALwyQ7Sb/XOQLbMUIHv55E5iL/c/cQC2aEw JyaaVAnnRCMX8WqeNT23W8T87Ow67eHYJz5j4po1L930yQACZlXD2LCOCxMtvkei7/bM t4sXvLKlg4lyHKyKJ1fRCFsBJTy0yD4w3nFomok4j1KcQJijFN8AKr8+fYmZ1qbhySTZ Iu2UY2xrmp4GIIS4extqGdFiQNterDsd4la/UNzGeVBy/qj46lOMBgXZbZsCBFpa3TEl Q0aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vG4Xni21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bz23si6050458ejc.703.2020.10.04.20.43.53; Sun, 04 Oct 2020 20:44:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vG4Xni21; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725860AbgJEDls (ORCPT + 99 others); Sun, 4 Oct 2020 23:41:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:49648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbgJEDls (ORCPT ); Sun, 4 Oct 2020 23:41:48 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A6F92207F7; Mon, 5 Oct 2020 03:41:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601869308; bh=vgyk5ypX915tVD4vhCLypoGHnjjpPzUVAZJByu6lzog=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=vG4Xni21hbDZBADEV2O44raKRMyUZ/+zn/tbA5aZeZ6Mu+qCjxIlWWR953RPOKD1D PNPg+h4V7wyTCT54LDj60KW6X6bKqCZjv3cv0AX6ZMY9XabTxtbUQ2Cx0LIncByKDN bmKrcAYJ/V1nbYwCpTV736nPdoraSGtvdj3uylqM= Date: Mon, 5 Oct 2020 12:41:41 +0900 From: Masami Hiramatsu To: Josh Poimboeuf Cc: Vasily Gorbik , Peter Zijlstra , Thomas Gleixner , Masami Hiramatsu , David Laight , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Miroslav Benes , Alexandre Chartre , Julien Thierry , linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH v3 2/4] objtool: x86 instruction decoder and big endian cross compiles Message-Id: <20201005124141.6a523ef633248a1eefd724d3@kernel.org> In-Reply-To: <20201002151841.4ojt45mtcpkylvdq@treble> References: <20201002151841.4ojt45mtcpkylvdq@treble> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Oct 2020 10:18:41 -0500 Josh Poimboeuf wrote: > On Thu, Oct 01, 2020 at 12:17:25AM +0200, Vasily Gorbik wrote: > > From: Martin Schwidefsky > > > > Currently objtool seems to be the only tool from build tools needed > > which breaks x86 cross compilation on big endian systems. Make the x86 > > instruction decoder of the objtool usable on big endian machines. > > > > Signed-off-by: Martin Schwidefsky > > Co-developed-by: Vasily Gorbik > > Signed-off-by: Vasily Gorbik > > Since this changes the decoder (which is shared with the kernel), please > prefix the subject with "x86/insn:" instead of "objtool". Thanks for pointing it. > > This patch is a bit ugly, but I don't necessarily have a better idea. > > Masami? Yeah, agreed. Maybe we can split that part in different header, but that makes it more ugly. And code itself looks good to me. (I like insn_field_set() idea :) ) Acked-by: Masami Hiramatsu Thank you! > -- > Josh > -- Masami Hiramatsu