linux-mips
[Top] [All Lists]

[PATCH v2 2/3] Loongson-2F: Enable fixups of binutils 2.20.1

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH v2 2/3] Loongson-2F: Enable fixups of binutils 2.20.1
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Thu, 11 Mar 2010 11:05:03 +0800
Cc: linux-mips@linux-mips.org, Sergei Shtylyov <sshtylyov@mvista.com>, Wu Zhangjin <wuzhangjin@gmail.com>, Zhang Le <r0bertz@gentoo.org>, Wu Zhangjin <wuzj@lemote.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references:in-reply-to:references; bh=P2v0PzTZ8PcrOj5xc9fJWbeIzqwSM6dukdMjQ4UhZUY=; b=fizzoJF/ThTAq74JA5pU6dhM++z1FkFYOlPmGoKrQHvqg2SoJiNC9guPwdZcmXVLR4 MbpMq6Fnl0EHqDa/t09p7hWWr9i0bh/JpU6egyg8COde5MPR9EFIUXKFPIgDigfSH+ER CULPHudKvklyGOwOK8FOrx2OC3w2HpHGvq7T4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=pw9k8nKii1N9Co8/B9o+EBqEuD8u+qONQkYOPKzW4M4uJGMSVSZM2whISthGnxDUe7 0emnu7wtJy9ZzF0SenQONppjwnkni3T2OH9aQ4NyB1MLr+uIJ/ZKB4aHPD47430Kf7io IS5zGuNknVjXiwwJskgJpR8AepJUIL36nkzF8=
In-reply-to: <cover.1268276417.git.wuzhangjin@gmail.com>
In-reply-to: <cover.1268276417.git.wuzhangjin@gmail.com>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1268276417.git.wuzhangjin@gmail.com>
References: <cover.1268276417.git.wuzhangjin@gmail.com>
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzhangjin@gmail.com>

As the "Fixups of Loongson2F" patch[1] to binutils have been applied
into binutils 2.20.1. It's time to enable the options provided by the
patch to compile the kernel.

Without these fixups, the system will hang unexpectedly for the bug of
processor.

To learn more about these fixups, please refer to the following
references.

[1] "Fixups of Loongson2F" patch for binutils(actually for gas)
http://sourceware.org/ml/binutils/2009-11/msg00387.html
[2] Chapter 15 of "Loongson2F User Manual"(Chinese Version)
http://www.loongson.cn/uploadfile/file/200808211
[3] English Version of the above chapter 15
http://groups.google.com.hk/group/loongson-dev/msg/e0d2e220958f10a6?dmode=source

Signed-off-by: Zhang Le <r0bertz@gentoo.org>
Signed-off-by: Wu Zhangjin <wuzj@lemote.com>
---
 arch/mips/Makefile |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 2f2eac2..5ae342e 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -135,7 +135,9 @@ cflags-$(CONFIG_CPU_LOONGSON2)      += -Wa,--trap
 cflags-$(CONFIG_CPU_LOONGSON2E) += \
        $(call cc-option,-march=loongson2e,-march=r4600)
 cflags-$(CONFIG_CPU_LOONGSON2F) += \
-       $(call cc-option,-march=loongson2f,-march=r4600)
+       $(call cc-option,-march=loongson2f,-march=r4600) \
+       $(call as-option,-Wa$(comma)-mfix-loongson2f-nop,) \
+       $(call as-option,-Wa$(comma)-mfix-loongson2f-jump,)
 
 cflags-$(CONFIG_CPU_MIPS32_R1) += $(call cc-option,-march=mips32,-mips32 
-U_MIPS_ISA -D_MIPS_ISA=_MIPS_ISA_MIPS32) \
                        -Wa,-mips32 -Wa,--trap
-- 
1.7.0.1


<Prev in Thread] Current Thread [Next in Thread>