|
From: David G. <dga...@gm...> - 2018-04-23 14:33:19
|
Hi, while working on removing the M68040 machine flag for the ColdFire build, I've found out that the Ssystem() system call ( http://toshyp.atari.org/en/00500e.html#Ssystem ) doesn't return ColdFire information for the mode S_OSCOMPILE. This mode should return the CPU type the kernel has been compiled for. Now a ColdFire kernel returns 68040. I'd like to add the right ColdFire information. The value returned is a 32 bit number which encodes the information like this: 0-7 Binary minor CPU ID 8-15 Binary major CPU ID 16-31 Reserved for future definition The major CPU ID now only returns a 0x00 value and means m68k family. 1) First question. Should the ColdFire be included in this family or should we add 0x01 value for the ColdFire family? Here I'm for adding a new family. The minor CPU ID means the exact CPU and the values are: 0x00 68000 0x0a 68010 0x14 68020 0x1e 68030 0x28 68040 0x3c 68060 Now the kernel returns values for the 68000, 68030, 68040 and the 68060 2) Second question. Which information do we give for the ColdFire processors?. We can give: a) the ISA classification (isaa, isab, isac, etc...). b) the CPU names as given in the "-mcpu=" option in GCC (52xx, 53xx, 54xx, etc). c) what it's called as micro-architecture by GCC (cfv1, cfv2, cfv3, cfv4, etc). I'm for the ISA option but I don't have a strong opinion about it. Later we should decide how this info is shown, it's not going to be possible to be consistent with how it's done for the 680x0 family. |