pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

devel/cpuflags delivers wrong value on macppc (Power Mac G4)



hi,

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

-mcpu=740

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 processor.

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,

timo

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

NetBSD 2.99.10 (GENERIC) #0: Tue Nov  2 22:49:31 CET 2004
tis%dreyfus.es43-bln.macfinity.net@localhost:/var/obj/sys/arch/macppc/compile/ GENERIC
total memory = 1024 MB
avail memory = 983 MB
mainbus0 (root)
cpu0 at mainbus0: 7400 (Revision 2.9), ID 0 (primary)
cpu0: HID0 8094c0a4<EMCP,DOZE,DPM,EIEC,ICE,DCE,SGE,BTIC,BHT>
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] -- http://www-3.ibm.com/chips/techlib/techlib.nsf/products/ PowerPC_740_Microprocessor

--
:x!

timo




Home | Main Index | Thread Index | Old Index