Received: by 10.213.65.68 with SMTP id h4csp1318930imn; Wed, 21 Mar 2018 07:55:20 -0700 (PDT) X-Google-Smtp-Source: AG47ELtbH4qMHeDdxy6klrn9QiKSCqeQQtBvNUI7PtMWpHv12BbJD3U/RapK+7InxBScm/MsbFbR X-Received: by 10.99.171.11 with SMTP id p11mr13072615pgf.176.1521644120823; Wed, 21 Mar 2018 07:55:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521644120; cv=none; d=google.com; s=arc-20160816; b=AVmGKna0/Lkre76epttdHLxxuNKR7mjCw6BANMZmFSlSyx37SvWw8u7VFIfkVgdRJm DaltBefUhBk/5tK4lbEENPEU0GcBV4NOu7hkjS+y4PREHK19IKvOK51+arYVPuP/IcQR 6qKFwqVMASHm4aRxZQ6x+POxVDodBz2AK+244yYgtxneEqXufJejAEqRnjcIlTZszOIg OgfSqXOQDFjNVuFvkNB/zYKYtvw6ybEOiAgev9OO1PvMSc871i0rWi+R4NvUF81+qH5D 3yZ455ZPHaZjGqTkfIK13RKh6Jfi/n2OR5llxvycnjgSxtI/0IE0uGOffXQxx85Yhog0 L0dA== 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=eRqHaUPDA0lsPGqOL+/+SNN84e1P/qhrYZXAeHjUDpk=; b=KQYM06kHObu+YsMjL6nSKVgE4qfg97sEPPjlUNfMMmNS/uIlJslA0OlstnAo7r7wHF VbCPZs4y3psdL53H9kxhTtLhQOAee7Ow+bfYVJ0ItnALniD9k15f7OziKLQHRnK3wG9r 4ZkX5rPADhmK3NkmVCJ9Y/ubu+pyXvyWoPnQFBYDc/Y1waP7jvfwKFCFKhsOsDAyzRxZ jbr30y//cHd+8aPaSQPqNdZ1J1zfuPLTTP4QHsuwUO7D5taSakEOMGhmrUrVNluA7ZmQ P556GYMXp5KHTYvt0UOFY+HsGZEJQpM/KUUv4BPfKnUE/0VW4EKceA/WTQW+CYYBA0Ac e+Ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@flygoat.com header.s=mail header.b=LZfEM0xd; dkim=pass header.i=@flygoat.com header.s=mail header.b=RGh6hQwc; 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 d1si2915137pgn.661.2018.03.21.07.55.06; Wed, 21 Mar 2018 07:55:20 -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=LZfEM0xd; dkim=pass header.i=@flygoat.com header.s=mail header.b=RGh6hQwc; 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 S1752438AbeCUOxg (ORCPT + 99 others); Wed, 21 Mar 2018 10:53:36 -0400 Received: from forward100p.mail.yandex.net ([77.88.28.100]:47314 "EHLO forward100p.mail.yandex.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752283AbeCUOxd (ORCPT ); Wed, 21 Mar 2018 10:53:33 -0400 Received: from mxback14g.mail.yandex.net (mxback14g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:93]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 5B62651065AD; Wed, 21 Mar 2018 17:53:31 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback14g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 1ycua7co6J-rUouaZTe; Wed, 21 Mar 2018 17:53:31 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=flygoat.com; s=mail; t=1521644011; bh=eRqHaUPDA0lsPGqOL+/+SNN84e1P/qhrYZXAeHjUDpk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=LZfEM0xdmkcXQjxc87i6/sfhUbkbpZt2xbmPq7wpf5oho6JQC9kYxhS47H+25t++N W6SAmtXuYjk6e6ZOPVsq3ERC5C+yUnIuRi1h5wdJjaRUN80TQACXx+X3Y8V/m3H0DW VU+UNVX95wLdgu4suQM0R50zTSumfGfTtBfrH8gg= Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Tlo5VWq6Rp-rPi4f9UL; Wed, 21 Mar 2018 17:53:28 +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=1521644009; bh=eRqHaUPDA0lsPGqOL+/+SNN84e1P/qhrYZXAeHjUDpk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=RGh6hQwcGhc7Lskn/XtQ8ZnY2vKKx6nLUj5cIPo/se+avTg8bgTyYXdAIg0JzOz3o ZCXJl/7MEO7porj8vefjr5LIwZMvpjlXtRhiNllWlm8Ms5CGc065xY1RzpbtIcbwGA fKdPVqmiBiWommqtbgB+0xX5STg1/EybIf3phG2A= Authentication-Results: smtp3o.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 2/2] MIPS: Loongson64: Define has_cpu_mips64r2_user for Loongson-3 Date: Wed, 21 Mar 2018 22:53:04 +0800 Message-Id: <20180321145304.4639-2-jiaxun.yang@flygoat.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180321145304.4639-1-jiaxun.yang@flygoat.com> References: <20180321145304.4639-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 mips64r2 usermode instructions. However 3A1000 3B1000 3B1500 should be treated as mips64r1 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,7 @@ #define cpu_has_wsbh 1 #define cpu_has_ic_fills_f_dc 1 #define cpu_hwrena_impl_bits 0xc0000000 +#define cpu_has_mips64r2_user 1 #endif #endif /* __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H */ -- 2.16.2