use crazy enum reverse lookup stuff to determine proper enum value for CPUType