From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-dy1-f178.google.com (mail-dy1-f178.google.com [74.125.82.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 696D33D75B8 for ; Tue, 16 Jun 2026 05:58:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781589511; cv=none; b=OPDM4WFle8Puti9+AVl7kUcbrxQPdxBPBT19dGPfuyZtF3EbDO3ravfWxPT8QUtRiqX6Kh4Z7RXh/ouo2Do+JlDJHGa472ALRozFWOF+dIbOhUv+pDzOvdQySUnENS100YdIUD+p5tPdgryWmhrWlWCYj0CSwnKvsphb8JCoikA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781589511; c=relaxed/simple; bh=pjMEfY3K+/Xw+PmVqjvzMCI+L/T2uYNTTllsMVPPgSo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rJJHj4exxbqSDkQDMggIqsDA7IOFEjNdnUYNxDlVgq0kcmiVSQ+wIL6ES78X/KbekJseb4MnGZAAVkYX8ioUY3mVuAmPSMYfRk+aTbnm4Ev8eZB5ZWCmDY/ys4JeaPU24xbM3zZrVMrh+KfCgPFqSjW1ke/vR/zQeudDfIkKsnc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=Hd1F8ffK; arc=none smtp.client-ip=74.125.82.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Hd1F8ffK" Received: by mail-dy1-f178.google.com with SMTP id 5a478bee46e88-30bb7d20ad9so70735eec.1 for ; Mon, 15 Jun 2026 22:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781589509; x=1782194309; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=9PSlzuZQ4Daz0lqLHFL3WubdgzTXoK9WA+8u5CazoU0=; b=Hd1F8ffK4luKmn10FBey4LNmAziM2x1JdWre5YrYI3qDbm0qTH0T2U2DTCDooEeC6K kjfv1HLJFQLK/H11d/csXCEOO+nWvzSAjP4hzFNSvQhlbqEbKcwIGEaqCCJ0nX2YILs+ MzF+fOLkosX+N8nTUV7H/L55DfkX2ZVyWwhrvjg8A3cldnZR+UsU5rC31BmpL2zCwjlH embfY1INszhyMb5imBI+bBrasYRUCOwW3qOP97l6Gz4B3yXB60d/TngHIMCKPh9OsPvG ujTw0DuHQF57+grr6rYfchZKmlnXAjuqCrEPn3NSVnx3jmC2Ia/7Ek85oyaDrQSBT8pw 03xQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781589509; x=1782194309; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9PSlzuZQ4Daz0lqLHFL3WubdgzTXoK9WA+8u5CazoU0=; b=hx05BmSODQ2hBzuiZ9zsDzMSXlQxqp2ZrbZhrsR05+x01beu8nzEzoL7E6JdTC1b0k FDTQqYlBYYLoFeNhoxgCN6lz9gZbuXqHm4FbGIl27VVJUuOs+yhEVUs2B8BjBuRK6jsc oPYX1REATocqhOaGCG+i+EkZQDQfa48i8lVH+bdNu5nVNZC4l+xOp1WSiGO6+q4onvtw cQEgfI1IyZSJuDbp1TDEHIW3JVCGiiIT/4JuzhMLLyEzBVFdT1tk1R2v2NwWJGAgRGyp a94JhySAVg7Y7tSEdrmV+0WluyfVo7W/D5cSZh+fCK5lczmCNrZ0wmNFYGVTya458Xsn eYEg== X-Forwarded-Encrypted: i=1; AFNElJ++XHHB5hpcjQV9d6h7SMXVkefbT1nwrG4IFAPeNL3qqWcfE0+VuOP5rmrbwjol2Ue3zEObK1O8tTvMNFo=@vger.kernel.org X-Gm-Message-State: AOJu0Yz7T3Y59wMW5U1TLhAmvxqXV179jniI6H8up+Ntr8izCoWo5Qi+ C86esK8xFzpwWFqr/WDjkLoBU+zRTg+25t+oxDmd2opkz9DRa11o7a9z X-Gm-Gg: Acq92OH5XzQKdcdh+H7WTOLJAgFYlG3clUUGhHqxoPdTXOMl/jPkYDOEj3M+Oo2e+tL kfhkbASdwGI7uE3YPZ9RNhbZ4dE24P8d0EpgAmsGwFEV0UWa8Ail0LPnq2Fnb7ArcfrZkpkbw4b rOKuqT2iS1wgkj8BAQuE6PFh13QjtP4+7Czp76Hom4u5iyPaUKorxBO2lH1WyCjy/e3Py3qgcxQ UHrd6TVJrN5tbDZ4t+u8Al+p3tKNqOEp5dR8Gg8DFWdWgl835zRp6RugeOAx8bSE0u2tPnlv4jW FXkNUFzTH6u/qB25B0iOCY3nEUjbOSb7jnT2s809AIzHVizM0nEyC6oQY8B+/psf5oe91UTt2wB yQqfn2GAOwekyoMXmkRIHTq5tyY1IPiVrF6+pbfYfqxpt5lKrbSpPAheo8mLHBU17aTAmjrwRUv 2TrWbVDuou/Jc= X-Received: by 2002:a05:693c:63d4:b0:30b:6191:7f96 with SMTP id 5a478bee46e88-30b6191bf72mr3509252eec.30.1781589509451; Mon, 15 Jun 2026 22:58:29 -0700 (PDT) Received: from blinky ([2601:647:6700:64d0::92d1]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3081e92096esm18135283eec.15.2026.06.15.22.58.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jun 2026 22:58:28 -0700 (PDT) Date: Mon, 15 Jun 2026 22:58:26 -0700 From: Charlie Jenkins To: Nam Cao Cc: Charlie Jenkins via B4 Relay , Paul Walmsley , Palmer Dabbelt , Alexandre Ghiti , Anup Patel , Atish Patra , Conor Dooley , Paolo Bonzini , Andrew Morton , Shuah Khan , linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, kvm-riscv@lists.infradead.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH 01/16] riscv: Introduce instruction table generation Message-ID: References: <20260407-riscv_insn_table-v1-0-54b4736a1e77@gmail.com> <20260407-riscv_insn_table-v1-1-54b4736a1e77@gmail.com> <878q8m1j9y.fsf@yellow.woof> <87se6tejoe.fsf@yellow.woof> 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: <87se6tejoe.fsf@yellow.woof> On Thu, Jun 11, 2026 at 07:21:37AM +0200, Nam Cao wrote: > Charlie Jenkins writes: > > This is a weird one. The Ziclsd extension introduces it for RV32[1]. All > > of the data is generated from the riscv-unified-db and because it is in > > the Ziclsd extension, c.ld is included for 32-bit in the c.ld > > description [2]. > > Oh :( We probably should amend the base spec to mention that. > > >> > + compressed_name=${name##c.*} > >> ^^^^^^^^^^^^^^^ > >> this name is misleading > > > > That's fair, I can rename it to be something like "compressed_inst"? > > My issue is that "compressed_name" indicates that it holds the > compressed variant of the name. But it actually is empty if the > instruction is compressed, otherwise it is the original instruction name. > > I am not sure what is a better name. Perhaps just inline this to the > usage below. Oh I see, I'll come up with a name that is more clear on inline it. > > Nam