From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932513AbeCVOWv (ORCPT ); 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 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 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