From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 230823D3337 for ; Tue, 30 Jun 2026 16:45:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782837958; cv=none; b=qiVvhwgFGqA0Cu9FCQDo/Y8h+VZ6iLAoNRVQtnYQSQUth8LYB8HX+8rX1h7+DmK48QuTE2lqNg3RuqK7uBLWlxohwJvL9W+kAMKQ5L5IkVM0m2MzwXCC22leAb0xBIIIJYLI9LBaZmGEIEAaSAGxxQemgsfCDeJKW4BifbhiDHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782837958; c=relaxed/simple; bh=tOylSTeK1/et88nUOdoHMPwJCZzkJ8qTh4JcTBRo7RM=; h=Mime-Version:Content-Type:Date:Message-Id:Subject:Cc:To:From: References:In-Reply-To; b=iiuzEiAtor8ofywpk+fm3MLyatDBLHaKZ7CEnKpmNiELbOh547nny1fNbvcUaQhztCYY5Alymg6LD148dEuSPUgSG1Qcyuy+yDNguV7AwBvrXXSirfjbir3ZOIYYotne5d2tiKahZdM2PG/fYdGp8XBnznt6pVSzPomdua/EW6A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=WlcIYofd; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=RMyMowbU; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="WlcIYofd"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="RMyMowbU" Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65UEDQk52225658 for ; Tue, 30 Jun 2026 16:45:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= U3na9UkHS5H0EdRatGfrYFloO7dlcC1NaROMwvFcLHk=; b=WlcIYofd0TKj1RFi Zc7FOeuvtbaXqFV9DaLqiXBNIcqumqfqD4GexonA6tW3Huf28vM7ZG8fNFlHXGRM /npCa7edFxUWcfiDgU3Ljty3RvtQ/9txAzgk7ERROWi9mjbYBlnHxVi3JiAUbVhA xoGOQKy3Dk8AKfdwFb2YON7dwiQ+JIc70Xbh8vkDqqmQKaocD2PCgYZz8NLo5jiy BT2lvL9UTToezbIJ/nv11m7nB9c1hS66R+K4j1TVUtnrWAJUa00ZyEIcjEhYSBLi xTqPoJNEfotMTYYGR7IkiyyVuZ9ngBZR5YlbhfI4T3zToGCka+FT1sKo5tX6S7bX uTJUmw== Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f441gus0u-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 30 Jun 2026 16:45:55 +0000 (GMT) Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-8efc093d7e5so49306806d6.2 for ; Tue, 30 Jun 2026 09:45:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782837954; x=1783442754; darn=vger.kernel.org; h=in-reply-to:references:from:to:cc:subject:message-id:date :content-transfer-encoding:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=U3na9UkHS5H0EdRatGfrYFloO7dlcC1NaROMwvFcLHk=; b=RMyMowbUMvTCnPGIqQ1P/V0q3RKWcOYQ9O+Pf1tYF0WO8V/fe1WWmw353dyDzzVq/S DRDtc+zc1arwu0mkQXxosfMaZRoezJkBfuEVKcPucE8iokM6vDoLMEuo06bRYILfIGpD Q4UGWGhQhKg3sdsjd4VcLRiASm4umiIbk0Q6WqbjtuZzP6ESXQJ9dprZzW6EENMYtzIZ Tzsw9CDhKR4eevPCI12uQydF5dLoQkVvv0Ob0HUidk15I531HaqutIBhYn5w5aD1YLSI VdXgHuExdNWAVC8t0jaywxEBWHW1XdqSkXaG8PFPWqhXkcMh6hQgg/FP8pItJICng682 prlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782837954; x=1783442754; h=in-reply-to:references:from:to:cc:subject:message-id:date :content-transfer-encoding:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=U3na9UkHS5H0EdRatGfrYFloO7dlcC1NaROMwvFcLHk=; b=TJDE/yNkQPZSrZqD5ucJZr7EpO5rWwY177EPSevfuwsFf0DwNhaVIknBFw39wem5nU paF0ejdyyMik8g0Kp/CnkT1AT2XuRaFQcLupECVcN3FWB7wJ/pXQaVnSjskhJ/IlU/kf cxZkxx3PrH6r+e0Q6wUhOkbC+F+apnNjHIcy/FJ0Uavp4zm5RjIiQZeYF5RbeGqIzAnS 3CGX6sKjFNlhBSgSsqElYZRKJuV3zNTTbaxFbA7vN4i2/XgYip4h0ONmagDsvgC5JLhg AyxigyS3b4Jq3vcMQF6Ygh2P173AQe5t4TkkQKOwlRVsB+AuVg0wF5aOrs8J7apxKpcQ RNAQ== X-Forwarded-Encrypted: i=1; AFNElJ8fXYeBKRXmRV0X74SvXZ3iVaS1Wi2JELh/NQ3IwGs6omhbhh+mlSx6TSqeqXOTT6ldggpmqd23IFfb0sA=@vger.kernel.org X-Gm-Message-State: AOJu0YyFwFc5dawp8i0X4YyQIZtu1roOosLMg4oRbzVkeegUS/QBmQcv wjzkcOdfmps1tcqWF/mq3tOq1MfE9ET1ECi0l6VLvPKkBzip97EChRDcuoFZmBtxH1gRr4ghufN 9wXhDdDOk5bE9VqMr8y53+0L+4A2P3FWtpjZsnpeXVspA9/XRJksKA+FC2IgNWuiVEkE= X-Gm-Gg: AfdE7ckvliBTYxcwF6eMqMdYVPsTloJClSor7I6S7oEnZm+T8MPx5DniUFogiQ0GdWX 4xWvF0rG2zRllEbHoJvs0OfPRbRJ7aCDghx/xCwW44T6pL9cmggTnJypoPGuUFw5dPONa5emgOZ kEoiogrivcH1QqRwWkdynzGoLyFiN4RtTNtVADKhATQUxieWlr0sR85X9jQFuqBHJZm9Jqe2jS+ z4s3SfwrzDhbRC1LexWeRC3y7hB38V9/4nIElvv+Y6Yl0XVSBVOxqwGq5vHWx9mlmwrSO0yJNjR Y0ieJ/lHMCSls3VEG4pVbsGQo/udY1NFUeThMRU2Zk/L1l5NR8ELTmuVFr21sObpIR+iq1ucZ8h j/cpNhdFyTpLbA1020HnwhpQVFB4uK6un4jsUQS9HJWvMcYw= X-Received: by 2002:a05:620a:2894:b0:92e:5028:dbe8 with SMTP id af79cd13be357-92e626718eemr717534185a.21.1782837954391; Tue, 30 Jun 2026 09:45:54 -0700 (PDT) X-Received: by 2002:a05:620a:2894:b0:92e:5028:dbe8 with SMTP id af79cd13be357-92e626718eemr717529285a.21.1782837953875; Tue, 30 Jun 2026 09:45:53 -0700 (PDT) Received: from localhost (ip-86-49-247-5.bb.vodafone.cz. [86.49.247.5]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c1288f0cb41sm153934166b.38.2026.06.30.09.45.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Jun 2026 09:45:53 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Tue, 30 Jun 2026 18:45:51 +0200 Message-Id: Subject: Re: [PATCH v2 01/16] riscv: Introduce instruction table generation Cc: "Paul Walmsley" , "Palmer Dabbelt" , "Nam Cao" , "Alexandre Ghiti" , "Anup Patel" , "Atish Patra" , "Conor Dooley" , "Paolo Bonzini" , "Andrew Morton" , "Shuah Khan" , , , , , To: "Charlie Jenkins" From: =?utf-8?q?Radim_Kr=C4=8Dm=C3=A1=C5=99?= References: <20260621-riscv_insn_table-v2-0-7f0810ee2274@gmail.com> <20260621-riscv_insn_table-v2-1-7f0810ee2274@gmail.com> In-Reply-To: <20260621-riscv_insn_table-v2-1-7f0810ee2274@gmail.com> X-Proofpoint-Spam-Info: AW1haW4tMjYwNjMwMDE1OCBTYWx0ZWRfX7WuOJaBrmORg sg00T9m/D2MoRzx0at8fPcxwBUkculM3NqedDtE9oMMw9hUQnahKznKgoSWO9oOfGXfL+yxMISf x1Dq4VVW3owsk23UK33eOvMT3zMZXCk= X-Proofpoint-ORIG-GUID: TWFV9czPXxgdOfsYRK9VAe8zxk6IHfOG X-Authority-Analysis: v=2.4 cv=F8dnsKhN c=1 sm=1 tr=0 ts=6a43f2c3 cx=c_pps a=oc9J++0uMp73DTRD5QyR2A==:117 a=aYZ+cQcEYoLAp2L633VOig==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=NEAV23lmAAAA:8 a=VwQbUJbxAAAA:8 a=pGLkceISAAAA:8 a=5Hg8iMh3NijzzsoxLLcA:9 a=QEXdDO2ut3YA:10 a=iYH6xdkBrDN1Jqds4HTS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjMwMDE1OCBTYWx0ZWRfXxreYsaRUWwR9 J6zN4rSZOxWdeOauU+X1+BJL8IYHcrjHdaZbtZoRfs51Q1k3zh0mNZ+H9c6QwmyoNt6I5aq0ct4 nQXiLyEyENVL49hw4fd9j7zRKJlBa1l+ObY2T5pkyZj8JrCygTjdi4wdxfYxxaPrzO5Mx+GzP0K /PN1S+2gjWR2jEKNJ5drRcoH2jxuwVcjamx6x2o1et1vJ1UEWkDSNkmcYF+lU2W3gesjYb4LCFl aKw68p/LHKBl2rnKlBJKuq9Hnt27NIUC+/L+TUBVa9Qz41LAjRDAuS9Wco7bmNX5b7XzcCk+jgx osLBhgPOETxQl+YQfeMuXfliBPbRaJwGdQT2rNSHfiqUtbT4E6wa/gQyrpb5s6jXsoCHy04qv5U TMtKVNvE20kwTbeceBEYlN9JF7D8gUzGma+QN1xYJrdAZ0Rb4iQHjeG8B4ECM4dGuRVOMao7eCf brc1rEMxJ1MiB+46NHQ== X-Proofpoint-GUID: TWFV9czPXxgdOfsYRK9VAe8zxk6IHfOG X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-30_04,2026-06-26_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 suspectscore=0 clxscore=1011 impostorscore=0 phishscore=0 spamscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606300158 2026-06-21T21:01:19-07:00, Charlie Jenkins via B4 Relay : > From: Charlie Jenkins > > Eliminate the need to hand-write riscv instructions by using a shell > script to autogenerate a header from an instruction table. This is modele= d > after the syscall table infrastructure. > > The table is generated externally by riscv-unified-db [1], but is > in a simple format to make it possible to use other tools or modify > manually. > > [1] https://github.com/riscv-software-src/riscv-unified-db > > Signed-off-by: Charlie Jenkins > > --- > diff --git a/arch/riscv/tools/insn.tbl b/arch/riscv/tools/insn.tbl > @@ -0,0 +1,1392 @@ > +# SPDX-License-Identifier: BSD-3-Clause-Clear > +# > +# GENERATED WITH https://github.com/riscv-software-src/riscv-unified-db > +# "./bin/generate inst-table -o test_table.txt" I checked out the repo, ran the command, and got a different table: > +andn common 0100000<25|111<12|0110011<0 xs2=3D24-20 xs1=3D19-15 xd=3D11-= 7 andn common 0100000<31|111<14|0110011<7 xs2=3D24-20 xs1=3D19-15 xd=3D11-= 7 I assume there were some recent changes in the output format... I think it would be nice to use their latest format and also note the UDB commit that was used, so it's easier to reproduce our file. Hopefully there won't be breaking changes too often. :) Thanks. --- Sashiko seems to have noticed a plenty of other issues, so I didn't review more...