linux-mips
[Top] [All Lists]

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

To: Johannes Stezenbach <js@convergence.de>
Subject: Re: Q: -mcpu= vs. -march= for VR41xx specific instructions
From: Jim Paris <jim@jtan.com>
Date: Thu, 14 Mar 2002 12:47:30 -0500
Cc: linux-mips@oss.sgi.com
In-reply-to: <20020314172502.GA5365@convergence.de>; from js@convergence.de on Thu, Mar 14, 2002 at 06:25:02PM +0100
References: <20020314172502.GA5365@convergence.de>
Reply-to: jim@jtan.com
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.2.5i
> 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

<Prev in Thread] Current Thread [Next in Thread>