Date: Fri, 11 Apr 2008 15:48:40 GMT From: Oleksandr Tymoshenko <gonzo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 139820 for review Message-ID: <200804111548.m3BFme5r040725@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=139820 Change 139820 by gonzo@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; /* *----------------------------------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804111548.m3BFme5r040725>