Received: by 2002:a05:7412:bc1a:b0:d7:7d3a:4fe2 with SMTP id ki26csp33856rdb; Fri, 18 Aug 2023 13:17:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGejLxlZU7Qqn0UyIyuxr7fMyW8gqmb2dBANu//cMHjBzyi7f61h/LRMm5m7vFvUkI8g7d/ X-Received: by 2002:aa7:c391:0:b0:525:5a65:6dfa with SMTP id k17-20020aa7c391000000b005255a656dfamr215631edq.14.1692389876974; Fri, 18 Aug 2023 13:17:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692389876; cv=none; d=google.com; s=arc-20160816; b=R7YpPGttAC+KJFZts0LQ2kByrm+USkJ09DdAGX6AJUXRLbmtB8r1sPh9ZAtfPqVGBt gfLIbstcGyhj8fWpSXMP24XVwIWZYsIPfJgvZW99baYlM+OaEri+zerfCR/kNJM9/6/+ 8q1bdtyLXJ41gW0t67OP68iSYYxxXb+SEmlnqy/bnZAUYLxc83yqII7XW2NL97jsGBHe MQq9PYJ6h+lM5m3HzAVLzYlsuTRT95ztVykC7VdhY56dBOQfAliVxvhAsrUAP69KzFXU 3ot68tBeDv6Hvnmzx0JHBaZmh8ayqym3X/xqAvhkrUqUwkDY7vQdfGs69mcbdv39ynzX C03Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=nPFrsyvkggxbpKuCzwfZtou4FfSBHxdxhy0nwvhU6vg=; fh=Rxj0oPU40GEWyUxOP2iauLGcvJfnf4Qg4Vk4AK0wdH8=; b=oE6KR5c4EacPNLPx9+J/CzdqW7d5se97a+dY+MHQir+xBp2Z5/0mxU3HrrRWl1cbOg ReKTYZna1jmspGtTMrUGBm1RMpSTzUdgeb1yK1nuZO8hpg71hRsDXVhG2d6d1zK7fNYG TCurKm3btjnzR0ReJCquMh0e4MsawgHVSRMpM9pvoYByoKc94+UDsC+UZNJw+qQ14rW5 EfN5oyI4TKFUv9vam9eXXStU14xJ8cJTIv7F1/GzPOtLuJ0FC0k0kcY1f1UX9dSib2v2 tqUCxOBW7hh5H4PlWXBRA5lXAX9UNoYWwSZn2qHaQ8EErPXBr9fCsptzLxgXRsBDP7q7 p4LA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e7mr0TAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d20-20020a056402079400b005234d073442si1934958edy.279.2023.08.18.13.17.31; Fri, 18 Aug 2023 13:17:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=e7mr0TAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353159AbjHQPUt (ORCPT + 99 others); Thu, 17 Aug 2023 11:20:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353156AbjHQPU2 (ORCPT ); Thu, 17 Aug 2023 11:20:28 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07BE530E5 for ; Thu, 17 Aug 2023 08:20:26 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 87585642F0 for ; Thu, 17 Aug 2023 15:20:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id E27D7C433CB; Thu, 17 Aug 2023 15:20:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692285624; bh=DB0OhACvo8fkRgRhb62F5ThJJF48oRue24Z1cHKFom8=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=e7mr0TARpLL1dqFKwLjPCjuA6zvFD4sIuqk6uQguLrIfP33B+9Ljwq+BbPRlfv4/v rFFDpGQUUDBFKQllHAFuMGjmdKFZkWDzvVAQK10RDEmmfZoQFQUq1jU+/nQedBP4FS g34UXmgEw7ux6SiGJTpvcnlivwV9tLwZ8BnWcuzLv3gtlJveEbDl+Oqpx3/DOMoCha FlzgDFwDa++8U7xLHyQRdMx2o7jRlvRVSsrlVsDUOopy2+pT/ISgAo31KAcdH1Zj37 lEPM+HiDWGAvO+aS4krHf7eK4R0PdPwj5l1Y7sw3DBcvZQuD8E4N5botAnOlUes/If yVR0mwrlsfzJg== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id C714DE26D37; Thu, 17 Aug 2023 15:20:24 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] riscv: correct riscv_insn_is_c_jr() and riscv_insn_is_c_jalr() From: patchwork-bot+linux-riscv@kernel.org Message-Id: <169228562481.20811.1913626229577446367.git-patchwork-notify@kernel.org> Date: Thu, 17 Aug 2023 15:20:24 +0000 References: <20230731183925.152145-1-namcaov@gmail.com> In-Reply-To: <20230731183925.152145-1-namcaov@gmail.com> To: Nam Cao Cc: linux-riscv@lists.infradead.org, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu, linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello: This patch was applied to riscv/linux.git (fixes) by Palmer Dabbelt : On Mon, 31 Jul 2023 20:39:25 +0200 you wrote: > The instructions c.jr and c.jalr must have rs1 != 0, but > riscv_insn_is_c_jr() and riscv_insn_is_c_jalr() do not check for this. So, > riscv_insn_is_c_jr() can match a reserved encoding, while > riscv_insn_is_c_jalr() can match the c.ebreak instruction. > > Rewrite them with check for rs1 != 0. > > [...] Here is the summary with links: - riscv: correct riscv_insn_is_c_jr() and riscv_insn_is_c_jalr() https://git.kernel.org/riscv/c/79bc3f85c51f You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html