switch (cpu_subtype) {
case CPU_SUBTYPE_POWERPC_970:
+ /* Do not allow a 970 binary to run on non-970 systems */
+ if (ms->cpu_subtype != CPU_SUBTYPE_POWERPC_970)
+ break;
case CPU_SUBTYPE_POWERPC_7450:
case CPU_SUBTYPE_POWERPC_7400:
case CPU_SUBTYPE_POWERPC_750:
* cctools project. As of 2/16/98 this is what has been agreed upon for
* the PowerPC subtypes. If an exact match is not found the subtype will
* be picked from the following order:
- * 970, 7450, 7400, 750, ALL
+ * 970(but only on 970), 7450, 7400, 750, ALL
* Note the 601 is NOT in the list above. It is only picked via an exact
* match. For details see Radar 2213821.
*
return 6;
switch (cpu_subtype) {
case CPU_SUBTYPE_POWERPC_970:
+ /* Do not allow a 970 binary to run on non-970 systems */
+ if (ms->cpu_subtype != CPU_SUBTYPE_POWERPC_970)
+ break;
return 5;
case CPU_SUBTYPE_POWERPC_7450:
return 4;