Re: Q: -mcpu= vs. -march= for VR41xx specific instructions

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

 



> I am trying to implement power management for an embedded
> device using a NEC VR4120 CPU core, which has the special
> instructions "standby", "suspend" and "hibernate".

> So I think I need either:
> - make gas accept -march=vr4100 along with -mcpu=r4600 (or -mcpu=r4100?)
> - or have a ".set vr4100" directive to enable the vr41xx specific
>   instructions where needed, without changing the flags in the
>   ELF header
> - or make the linker link modules with different (but compatible) e_flags
> - or is "GCCFLAGS += -Wa,-march=vr4100 -mips2 -Wa,--trap" perfect?

For lots of discussion of this, see

   http://sources.redhat.com/ml/binutils/2001-10/threads.html#00504

then

   http://sources.redhat.com/ml/binutils/2001-11/threads.html#00001

I don't remember where things currently stand.

-jim

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

  Powered by Linux