Tool to read the complete CPU type (PPC)?

ApfelKlassik.de

New Tinkerer
Nov 7, 2022
27
7
3
Hi folks,

is there a way to actually read the complete CPU type from the OS (and prevent disassembling machines to the CPU level ...)?

hw.cputype and cpusubtype only get down to eg. PowerPC - 7400, what about "reading" e.g. 7447a?

(In case you ask "why"? There are conflicting entries on different sources matching machines with "full cpu type" ...)

Thanks!
 

joevt

Tinkerer
Mar 5, 2023
73
32
18
The pvr (Processor Version Register) of the PowerPC CPU has the info.
https://pearpc.sourceforge.net/pvr.html

I think reading directly from the pvr in OS X or OS 9 requires a supervisor mode instruction which is difficult to do so I get the value from the registry instead. Open Firmware reads the pvr and stores it as a property named cpu-version in the CPU device. You can get the value from the IO Registry in OS X or NameRegistry in OS 9.

I added some code to my fork of XPostFacto to do that. I haven't checked in all my updates yet so I wouldn't try compiling it.
https://github.com/joevt/XPostFacto/blob/master/XPostFacto/Model/Device/CPUDevice.cpp
https://github.com/joevt/XPostFacto...f856/XPostFacto/Model/MountedVolume.cpp#L1547

Is there a sysctl -a result that looks like the cpu-version value?
 
  • Like
Reactions: Kai Robinson

Certificate of Excellence

Active Tinkerer
Nov 1, 2021
685
480
63
47
United Sates
I use hostinfo in terminal

hostinfo Terminal1.jpg

or machine to find cpu type.
 
Last edited:

ApfelKlassik.de

New Tinkerer
Nov 7, 2022
27
7
3
Thanks folks!

@Certificate of Excellence hostinfo does only give a translation of "subtype" ... so 7400 - even if it's a 7447a. Will have a look at machine.
@joevt great! Will have a look at the code.
And thanks a lot for the link to the PVR list - the Rev. shown in there actually corresponds with the "number" shown in the system profiler - so case solved from that angle.
 

Certificate of Excellence

Active Tinkerer
Nov 1, 2021
685
480
63
47
United Sates
Thanks folks!

@Certificate of Excellence hostinfo does only give a translation of "subtype" ... so 7400 - even if it's a 7447a. Will have a look at machine.
@joevt great! Will have a look at the code.
And thanks a lot for the link to the PVR list - the Rev. shown in there actually corresponds with the "number" shown in the system profiler - so case solved from that angle.
Yep, my suggestions fall short of what you are looking for. Best of luck to you. :)
 
Last edited:

ApfelKlassik.de

New Tinkerer
Nov 7, 2022
27
7
3
And here comes the on-board solution:

ioreg -l | grep cpu-version

So I guess I will make a poll to collect actual information calling all G4 users to submit information which I collect and then publish.

Example ... my G4 Ti-Book (A1001, EMC1913, 667MHz) does report 0x80010201, which makes it a PPC 7445 (v2.1)

Mactracker incorrectly states 7455 (v2.1) (even if there might have been issues using 7455, the number would be 3.2/3/4)
Everymac incorrectly states 7451