Subject: Re: DUMMY_NOPS
To: Charles M. Hannum <abuse@spamalicious.com>
From: Wojciech Puchar <wojtek@wojtek.3miasto.net>
List: port-i386
Date: 10/03/2001 22:26:35
>
> BTW, you'd also get some (slight, but larger) performance gain from
> ICU_SPECIAL_MASK_MODE, which I added ~8 years ago.  In theory this
> should work on all recent machines.
>
> I've often thought that we should have a separate kernel configuration
> for "Pentium or newer" machines.  We could do both of these, as well as
> disable a lot of the 486 workarounds in copyout*(), etc, and get some
> improvement.  Maybe even have it use different GCC optimizations
> ("-march=pentium"?).  Anyone care enough to do it?
me.

i already made netbsd binaries with this patch at
/usr/src/gnu/usr.bin/egcs. this means built egcs will generate pentium
code by default.

when using that first do make;make install in /usr/src/gnu/usr.bin/egcs
and then make build ALTROOT=... as when you build netbsd dist normally.

note that bootflopies doesn't build without changing ramdisk size etc...

anyway it's worth to change GENERIC/INSTALL kernel defs (remove I386,I486,
uncomment DUMMY_NOPS, add raid etc..)


--- Makefile.inc.orig	Sun Mar  5 06:41:05 2000
+++ Makefile.inc	Sat Sep 15 21:02:50 2001
@@ -1,6 +1,6 @@
 #	$NetBSD: Makefile.inc,v 1.25 2000/03/05 05:41:05 shin Exp $
-
 .if !defined(GCC_MAKEFILE_INC)
+
 GCC_MAKEFILE_INC=1

 .include <bsd.own.mk>
@@ -68,4 +68,7 @@
 .if defined(USE_EGCS_HAIFA)
 CPPFLAGS+=	-DHAIFA
 .endif
+
+CPPFLAGS+=-DTARGET_CPU_DEFAULT=2
+
 .endif