linux-mips
[Top] [All Lists]

[PATCH v5 3/4] Loongson-2F: Flush the branch target history in BTB and R

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH v5 3/4] Loongson-2F: Flush the branch target history in BTB and RAS (cont.)
From: Wu Zhangjin <wuzhangjin@gmail.com>
Date: Sat, 10 Apr 2010 20:07:01 +0800
Cc: Wu Zhangjin <wuzhangjin@gmail.com>, linux-mips <linux-mips@linux-mips.org>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:reply-to:to:cc :in-reply-to:references:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=uZWwT2a0zCcz5+9PmRR/o5+evszG5Dxs04VVpLfjHKc=; b=b1tgRysBjl4VX8756cZfyA8y3g+CovFXMHcdWAqJo6mKNTNoOSUxuft46w92bkEvxe VjJpKBZ8aX6l0k/IgQfGgZzbIwgjisJR3boycOhsMCOKrp+guJ55mN7LgR2gvnD0ijqX ML714sibTsZbNad1IORe/ONcbQdtsiJFKJ2gk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:reply-to:to:cc:in-reply-to:references:content-type :organization:date:message-id:mime-version:x-mailer :content-transfer-encoding; b=EDrpJLr1Bnq4/0uDo/0vTuxXp9ucwfL5mEkB4MLxnoemMdmXmcs7mD7P8yk1CBg2tL r1MPvwLXiUpj5uAaCbVc0hi0TiXfoRE3iMpx9QuPojeAq/NcrhFiMUWwcUvSPwk1pDou /tWpr7nUFvJ08aqEfy+VWZfaOKajp5R9QKLBA=
In-reply-to: <cover.1270882402.git.wuzhangjin@gmail.com>
In-reply-to: <cover.1270882402.git.wuzhangjin@gmail.com>
Organization: DSLab, Lanzhou University, China
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <cover.1270882402.git.wuzhangjin@gmail.com>
References: <cover.1270882402.git.wuzhangjin@gmail.com>
Reply-to: wuzhangjin@gmail.com
Sender: linux-mips-bounce@linux-mips.org
From: Wu Zhangjin <wuzhangjin@gmail.com>

This patch uses the new option CONFIG_CPU_JUMP_WORKAROUNDS introduced
from "Loongson: Add CPU_LOONGSON2F_WORKAROUNDS" to enable the
workarounds for the necessary loongson series(2F01/02).

Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/include/asm/stackframe.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/stackframe.h 
b/arch/mips/include/asm/stackframe.h
index c841912..58730c5 100644
--- a/arch/mips/include/asm/stackframe.h
+++ b/arch/mips/include/asm/stackframe.h
@@ -121,7 +121,7 @@
                .endm
 #else
                .macro  get_saved_sp    /* Uniprocessor variation */
-#ifdef CONFIG_CPU_LOONGSON2F
+#ifdef CONFIG_CPU_JUMP_WORKAROUNDS
                /*
                 * Clear BTB (branch target buffer), forbid RAS (return address
                 * stack) to workaround the Out-of-order Issue in Loongson2F
-- 
1.7.0.1




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