From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 95D08CA9EA0 for ; Mon, 28 Oct 2019 08:12:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7246720B7C for ; Mon, 28 Oct 2019 08:12:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733247AbfJ1IMs (ORCPT ); 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.