Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp69832rwd; Wed, 7 Jun 2023 19:35:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ75u/bP/A90O9zUA9n7uWcmmD4olBNt6jzi/v+G2xBlcS22c8gxdLTf9WaQHRubRkJgls1a X-Received: by 2002:a17:902:da83:b0:1b2:2400:f327 with SMTP id j3-20020a170902da8300b001b22400f327mr5036803plx.5.1686191718130; Wed, 07 Jun 2023 19:35:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686191718; cv=none; d=google.com; s=arc-20160816; b=CXbS9bqvgUYXY0+Znpc0lOHW95TNqtU3cLekOwDWEk2OSnIkNqOyIn7nvfQFYkhBTq AiALkW9Y5fXPQYpn1fZ86+k+EcknCAeWyAM2N+nvYG1E1XiqLvQviW8mSMeFX4bzpfmv VAq2TSXo9tOvc6/mT5x57C0zhvsymIM2cg1jTc8Hl2HX/sIgNWxaUluQ1/Ozj/Syrzoz vP/HaYoOUxxjmmwUXuRyLGYtv+WEBUtqwbI2QvzBf92dlxiYWz/HSwE6u/Hx/Dfcq9h0 L3D22x49zwWPXSDTqIp9QAwAb/wP2TQS6kQeEhd63kR3UWHhXa7EhFAesVX4ROVuUsnG QYOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ep7eEZvlaXxZd2ygzipLw/viYw9toD+bKM+IKcpwV+E=; b=skidcIhvT/NsHrtV8RovxOrTabGzor7an4t5g2ls10HsitKyfD9OTqEd4rciy5WH/b Q4zWt+rLcxFQtmrcwWH5VE2sV8NdTc15xVLzbePux8qN03Usz7xvqGa3sYHal6v18Hkx sKNPOznK4A94uduJVBIiijK/xei+LlDPlDNLj4m+3KFtDfbUOKMSGkA/XRIusZToUhyp Rz6yvxZfZfWrvJb5cg9JVAAT0cerFAKVR7w9d/N4c4f5YXpGbUd98sSFh7H/Xu4sChyg NyK66XT2MDDcdDHIKYvGw6hKbbyLGmvRzKdwdFeoVDL5dvFcCKmqn9+CCt9XPrcaO5xt 64VQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bi2-20020a170902bf0200b001a920be2722si260855plb.610.2023.06.07.19.35.05; Wed, 07 Jun 2023 19:35:18 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230300AbjFHC1p (ORCPT + 99 others); Wed, 7 Jun 2023 22:27:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42182 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229827AbjFHC1o (ORCPT ); Wed, 7 Jun 2023 22:27:44 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id CE6851BF0 for ; Wed, 7 Jun 2023 19:27:42 -0700 (PDT) Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8AxnOqdPIFkg1MAAA--.1139S3; Thu, 08 Jun 2023 10:27:41 +0800 (CST) Received: from lingfengzhe-ms7c94.loongson.cn (unknown [192.168.100.1]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxPMqcPIFkCkMGAA--.11968S2; Thu, 08 Jun 2023 10:27:40 +0800 (CST) From: Qi Hu To: Huacai Chen , WANG Xuerui Cc: Qing Zhang , Enze Li , loongarch@lists.linux.dev, linux-kernel@vger.kernel.org, Qi Hu , Miao HAO Subject: [PATCH v2] LoongArch: Fix function write_fcsr Date: Thu, 8 Jun 2023 10:27:38 +0800 Message-Id: <20230608022738.1861729-1-huqi@loongson.cn> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8AxPMqcPIFkCkMGAA--.11968S2 X-CM-SenderInfo: pkxtxqxorr0wxvrqhubq/1tbiAQAQCWSAc4ELYQABsl X-Coremail-Antispam: 1Uk129KBj9xXoW7Gw1DJw18uF48uryDXw4DJrc_yoW3Wrb_X3 WxJw4kur48Jay7Jwn0vFyrJr1093W8XFsIvF93Zr4xA3W5tr13Aw48Xw4UZr1Yk3yqqFs5 CrW0qry5CwsxtosvyTuYvTs0mTUanT9S1TB71UUUUjUqnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbhkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26r4UJVWxJr1l84ACjcxK6I8E87Iv6xkF7I0E14v2 6r4UJVWxJr1ln4kS14v26r1Y6r17M2AIxVAIcxkEcVAq07x20xvEncxIr21l57IF6xkI12 xvs2x26I8E6xACxx1l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj64x0Y40En7xvr7AKxVWU JVW8JwAv7VC0I7IYx2IY67AKxVWUtVWrXwAv7VC2z280aVAFwI0_Cr0_Gr1UMcvjeVCFs4 IE7xkEbVWUJVW8JwACjcxG0xvY0x0EwIxGrwCF04k20xvY0x0EwIxGrwCFx2IqxVCFs4IE 7xkEbVWUJVW8JwCFI7km07C267AKxVWUXVWUAwC20s026c02F40E14v26r1j6r18MI8I3I 0E7480Y4vE14v26r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAI cVC0I7IYx2IY67AKxVW8JVW5JwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Gr0_Cr1lIxAIcV CF04k26cxKx2IYs7xG6r1j6r1xMIIF0xvEx4A2jsIE14v26r4j6F4UMIIF0xvEx4A2jsIE c7CjxVAFwI0_Gr0_Gr1UYxBIdaVFxhVjvjDU0xZFpf9x07jYZXOUUUUU= X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Function "write_fcsr" uses wrong asm dest. Fix it! Reported-by: Miao HAO Signed-off-by: Qi Hu --- arch/loongarch/include/asm/loongarch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/loongarch/include/asm/loongarch.h b/arch/loongarch/include/asm/loongarch.h index b3323ab5b78d..35e8a52fea11 100644 --- a/arch/loongarch/include/asm/loongarch.h +++ b/arch/loongarch/include/asm/loongarch.h @@ -1496,7 +1496,7 @@ __BUILD_CSR_OP(tlbidx) #define write_fcsr(dest, val) \ do { \ __asm__ __volatile__( \ - " movgr2fcsr %0, "__stringify(dest)" \n" \ + " movgr2fcsr "__stringify(dest)", %0 \n" \ : : "r" (val)); \ } while (0) -- 2.40.1