From: Jiaxun Yang <jiaxun.yang@flygoat.com>
To: linux-mips@vger.kernel.org
Cc: keguang.zhang@gmail.com, paul.burton@mips.com,
Jiaxun Yang <jiaxun.yang@flygoat.com>
Subject: [PATCH 3/6] MIPS: Loongson32: Revert ISA level to MIPS32R2
Date: Tue, 22 Jan 2019 21:04:12 +0800 [thread overview]
Message-ID: <20190122130415.3440-3-jiaxun.yang@flygoat.com> (raw)
In-Reply-To: <20190122130415.3440-1-jiaxun.yang@flygoat.com>
GS232 core have implemented all necessary mips32r2 instructions.
Serval missing FP instructions can be emulated by kernel.
The issue of di instruction have been solved.
Thus we revert the ISA level back to MIPS32R2.
Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
---
arch/mips/Kconfig | 2 +-
arch/mips/loongson32/Platform | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/mips/Kconfig b/arch/mips/Kconfig
index 787290781b8c..5f6cf6fe6382 100644
--- a/arch/mips/Kconfig
+++ b/arch/mips/Kconfig
@@ -1866,7 +1866,7 @@ config CPU_LOONGSON2
config CPU_LOONGSON1
bool
select CPU_MIPS32
- select CPU_MIPSR1
+ select CPU_MIPSR2
select CPU_HAS_PREFETCH
select CPU_HAS_LOAD_STORE_LR
select CPU_SUPPORTS_32BIT_KERNEL
diff --git a/arch/mips/loongson32/Platform b/arch/mips/loongson32/Platform
index a0dbb3b2f2de..0db38f64f571 100644
--- a/arch/mips/loongson32/Platform
+++ b/arch/mips/loongson32/Platform
@@ -1,4 +1,4 @@
-cflags-$(CONFIG_CPU_LOONGSON1) += -march=mips32 -Wa,--trap
+cflags-$(CONFIG_CPU_LOONGSON1) += -march=mips32r2 -Wa,--trap
platform-$(CONFIG_MACH_LOONGSON32) += loongson32/
cflags-$(CONFIG_MACH_LOONGSON32) += -I$(srctree)/arch/mips/include/asm/mach-loongson32
load-$(CONFIG_CPU_LOONGSON1) += 0xffffffff80100000
--
2.20.1
next prev parent reply other threads:[~2019-01-22 13:12 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-22 13:04 [PATCH 1/6] MIPS: Loongson32: Remove unused platform devices Jiaxun Yang
2019-01-22 13:04 ` [PATCH 2/6] MIPS: Loongson32: workaround di issue Jiaxun Yang
2019-01-22 17:39 ` Paul Burton
2019-01-23 0:19 ` Jiaxun Yang
2019-01-23 1:34 ` Paul Burton
2019-01-22 13:04 ` Jiaxun Yang [this message]
2019-01-23 1:34 ` [PATCH 3/6] MIPS: Loongson32: Revert ISA level to MIPS32R2 Paul Burton
2019-01-22 13:04 ` [PATCH 4/6] MIPS: Loongson32: clarify we don't support MIPS16 and merge configs Jiaxun Yang
2019-01-23 1:34 ` Paul Burton
2019-01-22 13:04 ` [PATCH 5/6] MIPS: Loongson32: Set load address to 0x80200000 Jiaxun Yang
2019-01-23 1:34 ` Paul Burton
2019-01-22 13:04 ` [PATCH 6/6] cpu-probe: Rename Loongson 1B to Loongson GS232 Jiaxun Yang
2019-01-23 1:34 ` [PATCH 1/6] MIPS: Loongson32: Remove unused platform devices Paul Burton
[not found] ` <CAJhJPsU1DPBp6it0agNrDfLpQGRV0c45mH6mTi=wcwt0OZikkQ@mail.gmail.com>
2019-01-23 3:40 ` Jiaxun Yang
2019-01-23 21:40 ` Paul Burton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190122130415.3440-3-jiaxun.yang@flygoat.com \
--to=jiaxun.yang@flygoat.com \
--cc=keguang.zhang@gmail.com \
--cc=linux-mips@vger.kernel.org \
--cc=paul.burton@mips.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).