Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3349868ybg; Mon, 28 Oct 2019 11:24:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyd0pPqt4RgmwF1gciCtZWiudY7DkMh/mpOB50znJ0FEwGrqvIoafSkATTdPvE8b8c67xqd X-Received: by 2002:a17:906:494e:: with SMTP id f14mr16558864ejt.42.1572287079842; Mon, 28 Oct 2019 11:24:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572287079; cv=none; d=google.com; s=arc-20160816; b=vv3YWcLX3Y37jhzcMpAM/4EblHlb61Qd647qRooP0l36sFjk83z5jPr61O+DQX8a/P GH6arwq3iyVRul1Up7lrP49JLpf5XQx8b8tsycDea/YUkHdqARnNASLRt/6qEuTYCLIX JkHT87kEzZfgeseICTNaPDFwoiyaE6mOJiCigKY3lNOYPi4b0m7hGqu0lpJjL9xC2eK2 Wm5rK3yvF+GIBvaf+IPF1FypYcr8nPKaUByPTBzhiUGvNrCb9Miy6Y3Ph/ctQtjvbBew zSNnNofLLVxcr5usTp54I1Efub6TBp5hUrgiBU/BZSToiaziomAvhh5I5PAbPGGfF7GK G60w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=s3bn2QfELIs9t4QHiPRXNnvshoiSZkbg92i7HGFfY6Q=; b=G6+Eq3RgCJqAIOaMvQEKckqkEoPIvW5Zjj7iaKyNL9EEwxYcu9IBic9C5o6k9cR2cQ utQNINrEVyRB/gfkcXaLPFe5YIgJvcrMLtmXZEuHEJuzw3Lk+l8cfWZxtcA+RoKNx+kk lOGx5vrC9FhGzZcgWBpUSh6nBWA6wYtUufYTas3pZXnKn/tkk3MpgZlfaUl5vB88l7e3 vegI9E7FCxxT2FGgQllj5lBvnAz6B8PUx31NsYHDifw+05XhmqFNUybeEXhO4pK63bP4 PTguEz9Dz57IzG4s7V6+BbF+9EL8D4FJ5El/w2T66M+C9+QfI/LvEeDP/24rokqeFgZE RjBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23si6720219ejc.1.2019.10.28.11.24.16; Mon, 28 Oct 2019 11:24:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733243AbfJ1IMs (ORCPT + 99 others); Mon, 28 Oct 2019 04:12:48 -0400 Received: from verein.lst.de ([213.95.11.211]:33287 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729786AbfJ1IMr (ORCPT ); Mon, 28 Oct 2019 04:12:47 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E8C9F68AFE; Mon, 28 Oct 2019 09:12:44 +0100 (CET) Date: Mon, 28 Oct 2019 09:12:44 +0100 From: Christoph Hellwig To: Paul Walmsley Cc: Christoph Hellwig , Palmer Dabbelt , Damien Le Moal , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Atish Patra Subject: Re: [PATCH 03/15] riscv: abstract out CSR names for supervisor vs machine mode Message-ID: <20191028081244.GA20974@lst.de> References: <20191017173743.5430-1-hch@lst.de> <20191017173743.5430-4-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 18, 2019 at 04:55:02PM -0700, Paul Walmsley wrote: > The basic idea looks good to me, but some of the X-prefixing can make the > code difficult to read. The Xret macro looks fine to me, as do the > XIE_XTIE macros. But I think it would be better if the X-prefixes on the > rest of the macros and structure members could be dropped. This also > aligns with the way that these registers often are discussed at the > architectural level; e.g., we'd talk about the "epc" registers, not the > "xepc" registers. If we get of the x we should get rid of all of them. I'll make sure it is all gone for the next version.