Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1740212rdb; Tue, 20 Feb 2024 05:51:06 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUZBrfnkNXtSygSTJZZJzDvjZEljW1MtwoYKtQqGfrbJ/xMHW4DJaQnyDx7en+UZEYFadvXpZcV/ulrvTl4UD3gT4H/tb2SXFK/J59H+w== X-Google-Smtp-Source: AGHT+IEe7yvV34xpM2mNtSjx+QOD576ibU/XFIsCsTcoGpmrRnSIe9NUQNFQUuToj1MZsad77nWF X-Received: by 2002:a25:a3c3:0:b0:dcd:b432:9bd0 with SMTP id e61-20020a25a3c3000000b00dcdb4329bd0mr13347291ybi.56.1708437066705; Tue, 20 Feb 2024 05:51:06 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708437066; cv=pass; d=google.com; s=arc-20160816; b=UCGIRe0U9TTuZBRoZKWrM6ybRJ8Awoi8/FpOUwvjwiP3PZPxV1Ui9SJZkzrhcgOgr1 Y6/2LDaAiRfgEHei9l771csUDvE5iYLR4LAemNUDeAa7Qv+ndZ7BT6WD3IJ4Mh4QYr1J Dnkn1Lv8Oh/sDAo2Cli+cE04zKHG4FjStflwlHjR+L5W6HpCfQKYrNBQU3brYNMn+rE4 Fx+UzF6M3bA5JlenXytI8a5+zgzMq1dC/bjRSjrQbRdFHKVPL4G8KDJZHPJPTUMQehGM pEiUGEZXdQjFP39LblGKIKoaq4+rvh2wtR750Dtg2Zja+k4OEBrF7r5LHWoy5i1OZnH3 /2uA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=TbZx6S5RILQAY+QKquY55tXX9zVrznSTJxq4XwpiONw=; fh=I8uvk4P2MkW7N1UrLzYFMQrUdI/fAXldoB/FKELMa0I=; b=PHk+avAh6g94NhesxdE8f8AVCFoLHwEVVkluP4q3ReJQMk7Qp3gIV8oo3Fn2Uj9XBv DvTVngZ3U6LBRLUqOavXXqqWgF7+4z06+yjNB56Nn4ZQxRVh50WfKzK1tDi9sxhOyloe YU5REcki/iRm+bjxOFidYvBok1aJPTvn4eAr0NrlypzMR+cby78mGxxAFUFYMgor0KoE dA7mPs5MkwXUks/JCymd1FoWK6oC3AZ2f1XTgbXE3lA6bCjJsU0Jl2VR1pYD0392SaOb 2B7uAHtqikE/ZP8dvs1f/upJEsXxAJc3gssfInvuCqs3ko0uwZN56WEvdHyhePyjZF9A bhrA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-73103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73103-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z12-20020a05620a260c00b007877c19b782si936395qko.269.2024.02.20.05.51.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 05:51:06 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-73103-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73103-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id F02E91C2171F for ; Tue, 20 Feb 2024 13:50:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B04E774E21; Tue, 20 Feb 2024 13:48:56 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F09A96A346; Tue, 20 Feb 2024 13:48:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708436934; cv=none; b=Eh1hgIu8FOawRLMqGZ13/1ssJX8l4+8410GYNFCqowe09ZTmUDZtkl9KkW6b876jkptrI/ODg6ozdGpgc6DnLSVgGJGNN6xD2UEFzn8bIiYKrHkKWoBlINUzSMNAQ+3wwkM8lz36s3dE2CPUlmNG26FdOCMrSkTjUu//IfGybuo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708436934; c=relaxed/simple; bh=SynaioFw+yQpRvdCOCb1Co5Ewh+f1Mqe+AUZhxJedIo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=eiloiwJMgQord0zf3T2ag9K2+24IwQ9XTwC0gRG5Q2Wu/ZWq4LOn5xIomPTjNZ6wtnrwAvwkRrlkGNS9CRQw3VWXGIX+LoF6jysrWXPh3HvMOOIa60n6A2vkuZe4Bnfzjsx8mQq8RhMksSf+ub4ixw6bZ2xlritjjWBLwdLC65A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1rcQUF-0007Od-00; Tue, 20 Feb 2024 14:48:43 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 06587C0A1E; Tue, 20 Feb 2024 14:39:40 +0100 (CET) Date: Tue, 20 Feb 2024 14:39:40 +0100 From: Thomas Bogendoerfer To: Jiaxun Yang Cc: Gregory CLEMENT , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/8] MIPS: Unify register numbering macros for uasm Message-ID: References: <20240209-regname-v1-0-2125efa016ef@flygoat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240209-regname-v1-0-2125efa016ef@flygoat.com> On Fri, Feb 09, 2024 at 06:07:46PM +0000, Jiaxun Yang wrote: > Hi all, > > This is a attempt to unify register numbering macros for uasm, > in response to review comment [1]. > > This is a rather large cosmetic change so I decided to send > it as a sepreate set. > > Please review. > Thanks > > Signed-off-by: Jiaxun Yang > --- > Jiaxun Yang (8): > MIPS: Unify define of CP0 registers for uasm code > MIPS: regdefs.h: Guard all defines with __ASSEMBLY__ > MIPS: regdefs.h: Define a set of register numbers > MIPS: traps: Use GPR number macros > MIPS: page: Use GPR number macros > MIPS: tlbex: Use GPR number macros > MIPS: kvm/entry: Use GPR number macros > MIPS: pm-cps: Use GPR number macros > > arch/mips/include/asm/mipsregs.h | 249 +++++++++++++++++----- > arch/mips/include/asm/regdef.h | 91 +++++++++ > arch/mips/kernel/pm-cps.c | 134 ++++++------ > arch/mips/kernel/traps.c | 6 +- > arch/mips/kvm/entry.c | 431 +++++++++++++++++---------------------- > arch/mips/mm/page.c | 202 +++++++++--------- > arch/mips/mm/tlbex.c | 214 +++++++++---------- > 7 files changed, 737 insertions(+), 590 deletions(-) > --- > base-commit: 445a555e0623387fa9b94e68e61681717e70200a > change-id: 20240209-regname-4c14f1147e25 series applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]