building GCC cross toolchain for mips
Steve Ellcey
steve.ellcey@imgtec.com
Fri Mar 22 15:16:00 GMT 2013
On Fri, 2013-03-22 at 18:07 +0800, Vania Joloboff wrote:
> What happened ?
> Should we now use a different target ?
> The configure newlib we have
>
> "$SRC_DIR"/newlib-$V_NEWLIB/configure --host=$HOST --build=$BUILD \
> --target=mips-none-elf --prefix="$INSTALL_DIR" --disable-nls
>
> Then when compiling memcpy.S in newlib , I get:
> opcode not supported on this processor: mips1 (mips1) `pref
>
> but it seems the opcode is not found is because the assembler generated
> by binutils does not support pref !
>
> I also tried with target=mipsisa64r2
>
> Then I get
> memcpy.S:389: Error: Illegal operands `ld t4,((4)*8)($5)'
>
> Is it a binutils problem or a newlib problem?
> However it works with newlib 1.20....
Hi Vania, this looks like a problem with my new memcpy routine. The
first problem, with 'pref' can be fixed by applying this patch:
http://sourceware.org/ml/newlib/2013/msg00082.html
This may fix the target=mipsisa64r2 problem as well, but I am not
sure about that. I will have to look at that a bit more.
Steve Ellcey
sellcey@imgtec.com (sellcey@mips.com)
More information about the Newlib
mailing list