dd86k / ddcpuid

🔬 dd's x86 CPU Identification tool
MIT License
36 stars 1 forks source link

Crash on old processors #36

Closed dd86k closed 2 years ago

dd86k commented 2 years ago

Since a certain someone managed to run ddcpuid on Windows NT 3.51 with, I believe, an original Pentium (thankfully baseline for dmd on i386 targets Pentium Pro) only has up to CPUID.01h, the program assumes CPUID.04h and crashes with a division by 0 error.

If CPUID.04h cannot be reached at the make to make out the topology, it's safe to assume 1 core 1 thread.

dd86k commented 2 years ago

Fixed in 417950a.