diff mbox series

[3/6] MIPS: Loongson32: Revert ISA level to MIPS32R2

Message ID 20190122130415.3440-3-jiaxun.yang@flygoat.com (mailing list archive)
State Accepted
Headers show
Series [1/6] MIPS: Loongson32: Remove unused platform devices | expand

Commit Message

Jiaxun Yang Jan. 22, 2019, 1:04 p.m. UTC
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(-)

Comments

Paul Burton Jan. 23, 2019, 1:34 a.m. UTC | #1
Hello,

Jiaxun Yang wrote:
> 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>

Applied to mips-next.

Thanks,
    Paul

[ This message was auto-generated; if you believe anything is incorrect
  then please email paul.burton@mips.com to report it. ]
diff mbox series

Patch

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