Re: linux.h patch for mips

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Eric Christopher wrote:
> 
> > 
> > At least for completeness there should be also _MIPS_ISA_MIPS5
> > (the -mips5 swich would cause _MIPS_ISA_MIPS1 otherwise).
> 
> Rather irrelevent since mips5 really isn't supported in gcc, but ok. I
> was more concerned with the kernel issues and how checks for processor
> features was being done. Requiring -mipsX for anything isn't a good idea
> (what if you want to compile for something that is not a particular
> architecture, e.g. -march=r4600). 

That's why my private patch for mips64-linux has:

  %{mips1:-D_MIPS_ISA=_MIPS_ISA_MIPS1} \
  %{mips2:-D_MIPS_ISA=_MIPS_ISA_MIPS2} \
  %{mips32:-D_MIPS_ISA=_MIPS_ISA_MIPS32} \
  %{mips3:-D_MIPS_ISA=_MIPS_ISA_MIPS3} \
  %{mips4:-D_MIPS_ISA=_MIPS_ISA_MIPS4} \
  %{mips5:-D_MIPS_ISA=_MIPS_ISA_MIPS5} \
  %{mips64:-D_MIPS_ISA=_MIPS_ISA_MIPS64} \
  %{!mips*: \
    %{mabi=32|mabi=o32|!mabi*:-D_MIPS_ISA=_MIPS_ISA_MIPS1} \
    %{mabi=n32|mabi=64|mabi=n64:-D_MIPS_ISA=_MIPS_ISA_MIPS3}} \


Thiemo

[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux