Received: by 10.213.65.68 with SMTP id h4csp740843imn; Thu, 22 Mar 2018 07:36:28 -0700 (PDT) X-Google-Smtp-Source: AG47ELtwtENEPYPzDVpQmiV9KtPMvpwcTkIRHJ/e/pYWn5AAZCmEicJpUb2z337sAxPFUjJ/fnCW X-Received: by 2002:a17:902:b193:: with SMTP id s19-v6mr25421556plr.193.1521729388314; Thu, 22 Mar 2018 07:36:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521729388; cv=none; d=google.com; s=arc-20160816; b=rYNTYstRpYwQJvF3OEbNYRnMMkRAvSzs/jUy8s2s7T5PCOfc5quomL6WpFppM3x6UY xPuKgkTTK8bxHkaWZNo4xrcyPOdfbvWj0d/l2EmFvHZD+vcRZ254tH/POT9EACSqchjJ /eFn2Tk65IqFwXES/rmmHVsi1Ue+TsQA2edPQjFtFRwKN8sAttS+3sQuZAjCbSQp5Ke2 IL3WR18tJKfOliKxAHwM6UsxndObTuDFStftIXELHKuYjxFNTR5jvJPfM1VDS8HKKiVO 7djgRrMQVeNqRzEp3DvhZg2gzW2/SVhJ4aZQln1z8zO1MTHA2zfPVJXyxqeh4g+O1xzX xh5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-signature :arc-authentication-results; bh=YaSs9b9ptC4WtxYjfgT3DVrGhb5oD8xpJjyQFLPo78o=; b=ii+Nr0TTahYviNMGZ4jlwpsr313nXi/g3KhTpXhEj70IdGp1UmWVGshw/c3ego7w2U zgAIw1WtGTWSq1lbebgy5yrRlk8KzQ769gLdpDkkNZ5NcPSmh6az9R+7IHBFjqFmMBCz W9gzEWUG6mknBOaMiAK+MaDVxzTDrQwkXRG5+at2F5Y/TBfrEvMy4HPDdRXYd1P/6Xr1 gRMuVIoRd7AJQwuP0LWhsJIFTzpANow6ROY2uml+RZOfO8RVNl//10pyeljaxVv9Z9V1 FxZooL0VdRV0wpWn6SDWdQC8P+OCBc07ki5h35q82rF0ynB57tpxZ9Cn9D9S11XXZDni KVMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=CaRf5sFM; dkim=pass header.i=@flygoat.com header.s=mail header.b=DC3Wg3Li; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u3-v6si6548320plb.593.2018.03.22.07.36.13; Thu, 22 Mar 2018 07:36:28 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=CaRf5sFM; dkim=pass header.i=@flygoat.com header.s=mail header.b=DC3Wg3Li; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=flygoat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932509AbeCVOWv (ORCPT + 99 others); Thu, 22 Mar 2018 10:22:51 -0400 Received: from forward104p.mail.yandex.net ([77.88.28.107]:58284 "EHLO forward104p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932482AbeCVOWt (ORCPT ); Thu, 22 Mar 2018 10:22:49 -0400 Received: from mxback13g.mail.yandex.net (mxback13g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:92]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 0169518156E; Thu, 22 Mar 2018 17:22:44 +0300 (MSK) Received: from smtp2j.mail.yandex.net (smtp2j.mail.yandex.net [2a02:6b8:0:801::ac]) by mxback13g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 76Wx9YVV7Z-MghOisSg; Thu, 22 Mar 2018 17:22:43 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1521728563; bh=YaSs9b9ptC4WtxYjfgT3DVrGhb5oD8xpJjyQFLPo78o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=CaRf5sFMSFNX3nwO2U1Dy7O9FJwD+LZXd0qsVlJYY2zm2eFS97oO+BX6XHnC6baId DIATEKVfj/tfmuP7+ZLoC5vUeQ0/nK8+C/qly3FkgE4zEvQRJ32PDBgtLsjemXHJjK VKU1G1H4PMTV/eCPeg6f7Z+5t0+56HBMuzNxxPS8= Received: by smtp2j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id xanZbOtqWb-MXvOUmmF; Thu, 22 Mar 2018 17:22:39 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1521728561; bh=YaSs9b9ptC4WtxYjfgT3DVrGhb5oD8xpJjyQFLPo78o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=DC3Wg3Li/qEwuVWRzYTEOlrmKfvxTXYAYtMM1fFLCZkqoOUkBUQo7b9oojnfKshlq pQSBcwb4QHsBRfXfBRTNeYcHV1TJ1kFHv0tgVAEs0y5SK2ywPSuiYWA1Bs6j1nEtWN YGtxAsaL4g5MlabK+3hgv8Gi7gFlSiUIqZx+3eA4= Authentication-Results: smtp2j.mail.yandex.net; dkim=pass header.i=@flygoat.com From: Jiaxun Yang To: jhogan@kernel.org Cc: chenhc@lemote.com, linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Jiaxun Yang Subject: [PATCH v2 2/2] MIPS: Loongson64: Define has_cpu_mips*r2_user for Loongson-3 Date: Thu, 22 Mar 2018 22:22:15 +0800 Message-Id: <20180322142215.7705-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180322142215.7705-1-jiaxun.yang@flygoat.com> References: <20180321145304.4639-1-jiaxun.yang@flygoat.com> <20180322142215.7705-1-jiaxun.yang@flygoat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All loongson-3 processors support mips32r2 mips64r2 usermode instructions. However 3A1000 3B1000 3B1500 should be treated as r1 in kernel. Signed-off-by: Jiaxun Yang --- arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h b/arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h index 581915ce231c..71c893249374 100644 --- a/arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h +++ b/arch/mips/include/asm/mach-loongson64/cpu-feature-overrides.h @@ -49,6 +49,8 @@ #define cpu_has_wsbh 1 #define cpu_has_ic_fills_f_dc 1 #define cpu_hwrena_impl_bits 0xc0000000 +#define cpu_has_mips32r2_user 1 +#define cpu_has_mips64r2_user 1 #endif #endif /* __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H */ -- 2.16.2