Hi,
As you use the SE mode, the "kernel too old" error happens because the
kernel that gem5 emulate is declared with a too old version (2.6.29).
For ARM, this version number is declared in the
src/arch/arm/linux/process.cc file. For X86, it seems that it is in the
src/arch/x86/linux/syscall.cc file.
Changing this number (putting 3.0.0 for example) has worked for me.
Nathanaël
Le 01/07/2012 03:32, Nyunyi Tshibangu a écrit :
Thanks Amin,
I see the solution is to compile a newer kernel for gem5. any guidance
how to do this. I am new at this.
Thanks
On Sat, Jun 30, 2012 at 9:21 PM, Amin Farmahini <amin...@gmail.com
<mailto:amin...@gmail.com>> wrote:
This should help:
http://comments.gmane.org/gmane.comp.emulators.m5.users/10990
Amin
On Sat, Jun 30, 2012 at 7:16 PM, Nyunyi Tshibangu <nmtsh...@ncsu.edu
<mailto:nmtsh...@ncsu.edu>> wrote:
Hi,
I am trying to simulate my personal code written in C++ with
gem5....
I started just by compiling "hello.c" that came with gem5 and
use it instead of using the pre-compiled binary"hello". here is
what I get:
build/X86/gem5.opt configs/example/se.py -c ../c_code/my_hello
fatal: Object file is a dynamic executable however only static
executables are supported!
Please recompile your executable as a static binary and
try again.
@ cycle 0
then I recompiled it with g++ -static -o my_hello hello.c
running it again give me kernel error as:
FATAL: kernel too old
panic: Tried to read unmapped address 0xffffffffffffffc0.
@ cycle 812500
[invoke:build/X86/arch/x86/faults.cc, line 160]
Memory Usage: 618776 KBytes
Program aborted at cycle 812500
Aborted (core dumped)
but my kernel version is:
nmtshiba@ubuntu:~/gem5$ cat /proc/version
Linux version 3.2.0-23-generic (buildd@crested) (gcc version
4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu4) ) #36-Ubuntu SMP Tue Apr 10
20:39:51 UTC 2012
I have a ubuntu 12.04 installed on x86 machine.
any idea how I to compile my own binaries to run with gem5?
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org <mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org <mailto:gem5-users@gem5.org>
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users