Hi,

You can use 'file hello' command and you will see that the original hello
program is elf file MIPS1 but when you are recompiling it by   CodeSourcery
it willbe MIPS32. actually Gem5 is not supporting MIPS32. You can use some
flags for CodeSourcery to set for compiling in MIPS1 but actually the flags
are not working. You have to look for others cross compiler. I had this
problem with PowerPC and MIPS. I found a cross compiler for POWERPC that
work perfectly with GEMS. This site has cross compiler for MIPS too. Maybe
it work with MIPS. PLease check this site (
http://www.denx.de/wiki/ELDK-5/WebHome). Let me know you could solve the
problem for MIPS or not. definitely I need to solve the problem for MIPS
too.

Thanks,
Ali

On Sat, Feb 9, 2013 at 3:55 PM, Fernanda <[email protected]> wrote:

>
> ali bagherian <alibghrn <at> gmail.com> writes:
>
> >
> >
> > Hi,
> >
> > I used MIPS cross compilers from CodeSourcery to recompile the Hello.c
> sample
> for MIPS. it could compile it without any error but when I tried to run
> it, It
> does not run properly. I could run it properly before I compile it .
> >
> > I used following command to compile it :
> >
> > mips-linux-gnu-gcc -EL -g hello.c -o hello -static
> >
> >
> > I used following command to run it:
> >
> > build/MIPS/gem5.opt configs/example/se.py -c  tests/test-
> progs/hello/bin/mips/linux/hello
> >
> >
> > This is the output after runing compiled program
> >
> >
> >
> > Global frequency set at 1000000000000 ticks per second
> > warn: CoherentBus system.membus has no snooping ports attached!
> > 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
> > **** REAL SIMULATION ****
> > info: Entering event queue  <at>  0.  Starting simulation...
> > info: Increasing stack size by one page.
> > warn: 478500: Halting thread 0 in system.cpu  <at>  PC 40f2c0, setting
> restart
> PC to 40f2c4
> > Exiting  <at>  tick 9223372036854775807 because simulate() limit reached
> >
> >
> >
> > There is no 'Hello world'  in output.
> >
> > Thanks,
> > Ali
> >
> >
> > _______________________________________________
> > gem5-users mailing list
> > gem5-users <at> gem5.org
> > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
> Hi Ali,
>
> The same happened to me when simulating mips. Did you find any solution? I
> am
> stuck to this problem:
>
> Global frequency set at 1000000000000 ticks per second
> warn: CoherentBus system.membus has no snooping ports attached!
> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
> **** REAL SIMULATION ****
> info: Entering event queue @ 0.  Starting simulation...
> info: Increasing stack size by one page.
> warn: 584000: Halting thread 0 in system.cpu @ PC 40e144, setting restart
> PC to
> 40e148
> Exiting @ tick 9223372036854775807 because simulate() limit reached
>
> Thanks.
> Fernanda
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to