Subject: definitions in mips/include/cpuregs.h
To: None <port-mips@netbsd.org>
From: Simon Burge <simonb@netbsd.org>
List: port-mips
Date: 04/27/1999 14:16:43
Noticed this will lint was rumaging through libc.

/usr/include/mips/cpuregs.h:648: warning: `MIPS_R4300' redefined
/usr/include/mips/cpuregs.h:621: warning: this is the location of the previous definition
/usr/include/mips/cpuregs.h:650: warning: `MIPS_R4600' redefined
/usr/include/mips/cpuregs.h:624: warning: this is the location of the previous definition
/usr/include/mips/cpuregs.h:652: warning: `MIPS_RC32364' redefined
/usr/include/mips/cpuregs.h:629: warning: this is the location of the previous definition
/usr/include/mips/cpuregs.h:653: warning: `MIPS_RM5230' redefined
/usr/include/mips/cpuregs.h:630: warning: this is the location of the previous definition
/usr/include/mips/cpuregs.h:654: warning: `MIPS_R3SONY' redefined
/usr/include/mips/cpuregs.h:632: warning: this is the location of the previous definition
/usr/include/mips/cpuregs.h:656: warning: `MIPS_R3NKK' redefined
/usr/include/mips/cpuregs.h:633: warning: this is the location of the previous definition

It's from the CPU/FPU revision ID table.  I'm guessing that either
each of the listed CPU's has an on-board FPU, and that's why there's
duplication, or the FPU does indeed have the same name as the CPU.
Maybe we need to call the defines MIPS_CPU_xxx and MIPS_FPU_xxx - I
don't think we should be redefining CPP symbols.

Any suggestions?

Simon.