Hi,

I'm trying to compile a basic test program to run on MIPS, but gem5 keeps
failing with std::bad_alloc.

To do the cross compile, I am using: Sourcery CodeBench Lite
2011.09-75<https://sourcery.mentor.com/GNUToolchain/release2037>

The program contains only a single printf, and to build I am using:
mips-linux-gnu-gcc -EL -static

I believe the issue is that the system headers are for the wrong system
causing invalid syscall parameters, but I am not sure.

Can someone please point me in the right direction?  Perhaps I need to
include mips headers somehow that I am not aware of?

The code seems to work fine if I use an arm cross compiler and run it on
armse.  It also seems fine on alpha.  The test binary provided with gem5
works fine on mips.

If I try to debug gem5, it appears the alloc that fails tries to allocate
an array of size 0 using new during the implementation of the writev system
call.

Thanks,
Tarun
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to