Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [PATCH] Loongson 2 requires no NOP insns to work around hazards
@ 2009-04-15  9:01 Zhang Le
  2009-04-18 12:22 ` Ralf Baechle
  0 siblings, 1 reply; 3+ messages in thread
From: Zhang Le @ 2009-04-15  9:01 UTC (permalink / raw)
  To: linux-mips; +Cc: yanh, zhangfx, penglj, Zhang Le

Quoting from Loongson2FUserGuide.pdf:

5.22.1 Hazards
The processor detects most of the pipeline hazards in hardware, including CP0 hazards and
load hazards. No NOP instructions are required to correct instruction sequences.

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/hazards.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)
 
 #elif defined(CONFIG_CPU_R10000) || defined(CONFIG_CPU_CAVIUM_OCTEON) || \
-      defined(CONFIG_CPU_R5500)
+      defined(CONFIG_CPU_R5500) || defined(CONFIG_CPU_LOONGSON2)
 
 /*
  * R10000 rocks - all hazards handled in hardware, so this becomes a nobrainer.
-- 
1.6.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-04-18 13:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-15  9:01 [PATCH] Loongson 2 requires no NOP insns to work around hazards Zhang Le
2009-04-18 12:22 ` Ralf Baechle
2009-04-18 13:30   ` Zhang Le

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox