Subject: devel/cpuflags delivers wrong value on macppc (Power Mac G4)
To: NetBSD-current Users <>
From: =?ISO-8859-1?Q?Timo_Sch=F6ler?= <>
List: current-users
Date: 11/03/2004 15:17:03

running cpuflags on my Power Mac G4 (dmesg output below, [1]) gives  
following value back:


this is not true. as can be seen e.g. at [2], the PowerPC 740 is kind  
of PowerPC 750 lacking (any) L2 Cache, as where the CPU built into the  
Power Mac G4 (Yikes and Sawtooth series; not the following 466, 533 MHz  
series, which sported the 7410 already) is definitely a PowerPC/MPC7400  

the wrong output of cpuflags leads to false optimization in case  
they're utilized e.g. via /etc/mk.conf.

is this a ``known bug'' or should i file a PR?

tia & regards,


[1] -- the dmesg (only the part of impartance, tho)

NetBSD 2.99.10 (GENERIC) #0: Tue Nov  2 22:49:31 CET 2004
total memory = 1024 MB
avail memory = 983 MB
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
cpu0: 400.00 MHz, no-parity 1MB WB L2 cache (PB SRAM) at 2:1 ratio
uninorth0 at mainbus0
pci0 at uninorth0 bus 0
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 11 function 0
pchb0: Apple Computer UniNorth AGP Interface (rev. 0x00)
ofb0 at pci0 dev 16 function 0: ATI Technologies product 0x4966
ofb0: 1600 x 1200, 8bpp
wsdisplay0 at ofb0 kbdmux 1: console (std, vt100 emulation)
wsmux1: connecting to wsdisplay0
uninorth1 at mainbus0
pci1 at uninorth1 bus 0

(etc etc etc)

[2] --