Welcome, Guest. Please login or register.

Author Topic: How to detect 68060  (Read 2034 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: How to detect 68060
« on: October 28, 2005, 11:58:20 PM »
@Karlos
Code: [Select]

if (SysBase->AttnFlags & 0x80)
{
  /* 68060 */
}

This bit was defined by Phase5, so you can't find it from NDK 3.1 includes. It's included in exec/execbase.h of NDK 3.5 and 3.9 though:
Code: [Select]

#define AFB_68060 7
#define AFF_68060 (1L<<7)

With 68060, AFF_FPU40, AFF_68881 and AFF_68882 have the same meaning as for 68040 (so AFF_FPU040 acts as AFF_FPU060 really).