Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Wed, 15 Apr 2009
 04:47:17 -0700
Received: from psmtp.com ([64.18.0.39]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Wed, 15 Apr 2009 04:47:16 -0700
Received: from source ([213.58.128.207]) by exprod5mx193.postini.com
 ([64.18.4.11]) with SMTP;	Wed, 15 Apr 2009 04:47:16 PDT
Received: from localhost.localdomain ([127.0.0.1]:12213 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S20023005AbZDOJC2
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Wed, 15 Apr 2009 10:02:28 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 15 Apr 2009 10:02:11
 +0100 (BST)
Received: from sitar.i-cable.com ([203.83.115.100]:38338 "HELO
	sitar.i-cable.com") by ftp.linux-mips.org with SMTP	id S20022882AbZDOJCF
 (ORCPT <rfc822;linux-mips@linux-mips.org>);	Wed, 15 Apr 2009 10:02:05 +0100
Received: (qmail 757 invoked by uid 508); 15 Apr 2009 09:01:56 -0000
Received: from 203.83.114.122 by sitar (envelope-from <r0bertz@gentoo.org>,
 uid 505) with qmail-scanner-1.25  (clamdscan: 0.93.3/8786.
   Clear:RC:1(203.83.114.122):.  Processed in 0.107237 secs); 15 Apr 2009
 09:01:56 -0000
Received: from ip114122.hkicable.com (HELO xenon.i-cable.com) (203.83.114.122)
  by 0 with SMTP; 15 Apr 2009 09:01:56 -0000
Received: from localhost.localdomain (cm222-167-208-75.hkcable.com.hk
 [222.167.208.75])	by xenon.i-cable.com (8.13.5/8.13.5) with ESMTP id
 n3F91rak004975;	Wed, 15 Apr 2009 17:01:55 +0800 (CST)
From: Zhang Le <r0bertz@gentoo.org>
To: "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
CC: "yanh@lemote.com" <yanh@lemote.com>, "zhangfx@lemote.com"
	<zhangfx@lemote.com>, "penglj@lemote.com" <penglj@lemote.com>, Zhang Le
	<r0bertz@gentoo.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Wed, 15 Apr 2009 02:01:52 -0700
Subject: [PATCH] Loongson 2 requires no NOP insns to work around hazards
Thread-Topic: [PATCH] Loongson 2 requires no NOP insns to work around hazards
Thread-Index: Acm9v+13bSvS588jQ0Kdsh09L2R8Cg==
Message-ID: <1239786112-22120-1-git-send-email-r0bertz@gentoo.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 15 Apr 2009 11:47:16.0716 (UTC)
 FILETIME=[ECDE3AC0:01C9BDBF]
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:58.72561/99.90000 CV:99.9000 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 0/0/0.00/0
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: G6CVsUefo8OHyVc8HGoLNg==
x-list: linux-mips
x-archive-position: 22338
x-ecartis-version: Ecartis v1.0.0
x-original-sender: r0bertz@gentoo.org
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Quoting from Loongson2FUserGuide.pdf:

5.22.1 Hazards
The processor detects most of the pipeline hazards in hardware, including C=
P0 hazards and
load hazards. No NOP instructions are required to correct instruction seque=
nces.

Signed-off-by: Zhang Le <r0bertz@gentoo.org>
---
 arch/mips/include/asm/hazards.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/include/asm/hazards.h b/arch/mips/include/asm/hazard=
s.h
index 134e1fc..19d1141 100644
--- a/arch/mips/include/asm/hazards.h
+++ b/arch/mips/include/asm/hazards.h
@@ -139,7 +139,7 @@ do {									\
 } while (0)
=20
 #elif defined(CONFIG_CPU_R10000) || defined(CONFIG_CPU_CAVIUM_OCTEON) || \
-      defined(CONFIG_CPU_R5500)
+      defined(CONFIG_CPU_R5500) || defined(CONFIG_CPU_LOONGSON2)
=20
 /*
  * R10000 rocks - all hazards handled in hardware, so this becomes a nobra=
iner.
--=20
1.6.2


