PERFORCE change 139820 for review

Oleksandr Tymoshenko gonzo at FreeBSD.org
Fri Apr 11 15:48:41 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=139820

Change 139820 by gonzo at gonzo_jeeves on 2008/04/11 15:47:49

	o Set HAZARD_DELAY to 5 cycles for all machines till we
	   figure out the way to do it platform-wise.

Affected files ...

.. //depot/projects/mips2-jnpr/src/sys/mips/mips/exception.S#23 edit

Differences ...

==== //depot/projects/mips2-jnpr/src/sys/mips/mips/exception.S#23 (text+ko) ====

@@ -96,17 +96,14 @@
 	.set	mips3
 #endif
 
-#define	ITLBNOPFIX	nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
 /*
- * FREEBSD_DEVELOPERS_FIXME
- * Some MIPS CPU may need delays using nops between executing CP0 Instructions
+ * Assume that w alaways need nops to escape CP0 hazard
+ * TODO: Make hazard delays configurable. Stuck with 5 cycles on the moment
+ * For more info on CP0 hazards see Chapter 7 (p.99) of "MIPS32 Architecture 
+ *    For Programmers Volume III: The MIPS32 Privileged Resource Architecture"
  */
-#ifdef MIPS_CPU_NEEDS_DELAY
-#define	HAZARD_DELAY	nop ; nop ; nop ; nop
-#else
-#define	HAZARD_DELAY
-#endif
-
+#define	ITLBNOPFIX	nop;nop;nop;nop;nop;nop;nop;nop;nop;nop;
+#define	HAZARD_DELAY	nop;nop;nop;nop;nop;
 
 /*
  *----------------------------------------------------------------------------


More information about the p4-projects mailing list