Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp77143rwd; Wed, 7 Jun 2023 19:45:34 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7BaenChudjyKxCMC+UI2rDrn3/ow3okbjTvtPK8Ko3887Tw8De3zV7i8Ug8PNjJavtO5wz X-Received: by 2002:a17:90a:12c1:b0:247:529f:92d7 with SMTP id b1-20020a17090a12c100b00247529f92d7mr6726664pjg.8.1686192334209; Wed, 07 Jun 2023 19:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686192334; cv=none; d=google.com; s=arc-20160816; b=UNMKwBZN2dudrYy+OwilR68/BmjZzbNqB3oJebxRAXWbmB+VPWyrtC5C7PYiBa9byf FJ3csLRyXLes4a4Bhn92oGZKPHPuRcA5MSp2LmQFTOfQXMOo+3J4HW5nuhx+j55tZUz8 SIGASVzt4nHLkSxCZweUbdGB7YuWafNtwCK8gcxs+h35De0XVYlSJq0TKibzVHZlIvCY ld8fx7wAgERWad5zpZOWy33EgkoFO/YcbwrxT6blkV5e/Ip6rG6zFQmh/fSbd9GaZhHg Xm61QPeXqpRGYPpV8cnYvxP7WEV2Y/X8LZJykW5CrBV4PzQOM3sZxHEZHnOMvYR31eMu VV9w== 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=yMCV4PiBNST08J9nGARv51l1Ro+Fh/4ZEoDNVaPvmMI=; b=nRGvwa+aFYCpHrzFL8AtUstfiw+xCFOkolloNRlz+VYW9F+j1tADOBHyVkjRgMgeAm MNpZJ1Kx0TpWRp9hkhl9gf1wMRnv7VfzGJyTmjPCEoDkYLIEBVB+pofzOxFSW1czVxx3 +u8/WEGn3Fc/7Kk8XHs8oXAFMtYFdN1LHH3aHfzY6CXH7/xTp/w1450T7yDt3oc0rFA7 ZAgtF76RcAQLMSKs4w+zuQv4rICeKxwqAiLIIVsAEO8le8upFq9v/uylBS4nX0D5kWk/ ZmzMqYKlShABrEoaXH0u+doXNanRmZihl+82J82gqdYGgeNLo5FJOBIzVwhB25KcdWX6 s0Nw== 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 ne5-20020a17090b374500b00255d3de568asi340661pjb.13.2023.06.07.19.45.21; Wed, 07 Jun 2023 19:45:34 -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 S232031AbjFHCWm (ORCPT + 99 others); Wed, 7 Jun 2023 22:22:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229556AbjFHCWj (ORCPT ); Wed, 7 Jun 2023 22:22:39 -0400 Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D1EE173A for ; Wed, 7 Jun 2023 19:22:38 -0700 (PDT) Received: from loongson.cn (unknown [192.168.100.1]) by gateway (Coremail) with SMTP id _____8AxHuttO4FkG1MAAA--.1185S3; Thu, 08 Jun 2023 10:22:37 +0800 (CST) Received: from lingfengzhe-ms7c94.loongson.cn (unknown [192.168.100.1]) by localhost.localdomain (Coremail) with SMTP id AQAAf8BxjcpsO4FkLEAGAA--.12263S2; Thu, 08 Jun 2023 10:22:36 +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] LoongArch: Fix function write_fcsr Date: Thu, 8 Jun 2023 10:22:33 +0800 Message-Id: <20230608022233.1859773-1-huqi@loongson.cn> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: AQAAf8BxjcpsO4FkLEAGAA--.12263S2 X-CM-SenderInfo: pkxtxqxorr0wxvrqhubq/1tbiAQAPCWSAc4EIFQAlsp X-Coremail-Antispam: 1Uk129KBj9xXoW7Gw1DJw18uF48uryDXw4DJrc_yoW3XrX_X3 W3Jw4kur48Jay7Xwn0vF93Jr10g3W8JFnIvF95Zr4xJ3W5Jr13Jw48Xw1DZr4Yk3yv9Fs3 CFWrt345Aw13KosvyTuYvTs0mTUanT9S1TB71UUUUj7qnTZGkaVYY2UrUUUUj1kv1TuYvT s0mT0YCTnIWjqI5I8CrVACY4xI64kE6c02F40Ex7xfYxn0WfASr-VFAUDa7-sFnT9fnUUI cSsGvfJTRUUUbgkYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E6xAIw20EY4v20x vaj40_Wr0E3s1l1IIY67AEw4v_Jrv_JF1l8cAvFVAK0II2c7xJM28CjxkF64kEwVA0rcxS w2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0cI8IcVCY1x0267AKxV W8JVWxJwA2z4x0Y4vEx4A2jsIE14v26F4j6r4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_ Gr1j6F4UJwAaw2AFwI0_JF0_Jw1le2I262IYc4CY6c8Ij28IcVAaY2xG8wAqjxCEc2xF0c Ia020Ex4CE44I27wAqx4xG64xvF2IEw4CE5I8CrVC2j2WlYx0EF7xvrVAajcxG14v26r1j 6r4UMcIj6xIIjxv20xvE14v26r126r1DMcIj6I8E87Iv67AKxVWxJVW8Jr1lOx8S6xCaFV Cjc4AY6r1j6r4UM4x0Y48IcxkI7VAKI48JMxkF7I0En4kS14v26r126r1DMxAIw28IcxkI 7VAKI48JMxC20s026xCaFVCjc4AY6r1j6r4UMxCIbckI1I0E14v26r126r1DMI8I3I0E5I 8CrVAFwI0_Jr0_Jr4lx2IqxVCjr7xvwVAFwI0_JrI_JrWlx4CE17CEb7AF67AKxVWUtVW8 ZwCIc40Y0x0EwIxGrwCI42IY6xIIjxv20xvE14v26r1I6r4UMIIF0xvE2Ix0cI8IcVCY1x 0267AKxVWUJVW8JwCI42IY6xAIw20EY4v20xvaj40_Jr0_JF4lIxAIcVC2z280aVAFwI0_ Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxVWUJVW8JbIYCTnIWIevJa73UjIFyTuYvjxUcn a9DUUUU 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..60cadb95f611 100644 --- a/arch/loongarch/include/asm/loongarch.h +++ b/arch/loongarch/include/asm/loongarch.h @@ -1488,7 +1488,7 @@ __BUILD_CSR_OP(tlbidx) unsigned int __res; \ \ __asm__ __volatile__( \ - " movfcsr2gr %0, "__stringify(source)" \n" \ + " movfcsr2gr "__stringify(source)", %0 \n" \ : "=r" (__res)); \ __res; \ }) -- 2.40.1