Dear Sirs:
I've read the web page of reporting problems, and I'm very sorry for the
bothering:-). But, I'm really anxious about this, cause this is very
important to my job in campus. I discovered that I can run the sample hello
program ---- "tests/test-progs/hello/bin/mips/linux/hello", but when I
compiled its source code in the directory "tests/test-progs/hello/src", and
run it, the same error occured. So I guess that there must be something
wrong with my compiling procedure. I compiled the source code like this:
mips-linux-gnu-gcc --static -EL -o hello_mine hello.c
And I'm using the compiler of version 4.5.2. Is this correct? Could you
tell me the version of the compiler that generated the sample hello program,
and what parameters should be sent to it. I think that must be the answer to
my question.
I'm looking forward to your answer. Please help me, Thank you very
much:-)
I'm learning to use gem5. I tried to execute a simple C program on gem5,
but an error came up:
*
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Sep 22 2011 00:40:05
gem5 started Sep 23 2011 22:20:04
gem5 executing on localhost.localdomain
command line: ./build/MIPS_SE/gem5.opt configs/example/se.py -c
../CrossCompilerTest/test2
Global frequency set at 1000000000000 ticks per second
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: Not extending stack: address 0xffff9014 isn't at the end of the stack.
panic: Page table fault when accessing virtual address 0xffff9014
@ cycle 370000
[invoke:build/MIPS_SE/sim/faults.cc, line 71]
Memory Usage: 554772 KBytes
Program aborted at cycle 370000
Aborted (core dumped)*
Here is the command that I used to execute it and the program that I
wrote to execute on gem5:
*./build/MIPS_SE/gem5.opt configs/example/se.py -c ../CrossCompilerTest/test2
*
#include <stdio.h>
int main()
{
printf("Hello World");
return 0;
}
The compiler I used is: Sourcery_CodeBench_Lite_for_MIPS_GNU_Linux 4.5.2
What should I do? Please help me, Thank you
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users