Hi Team,

I have written a c code (hello world program) and compiled using the arm
cross compiler. When I run the simple.py config file with new helloworld
binary updated in simple.py file I am getting simulation failure.

c code is as shown below:





*#include <stdio.h>int main(int argc, char* argv[]) {   // printf()
displays the string inside quotation   printf("Hello, World!");   return
0;}*


ARM cross compiler used : *aarch64-linux-gnu-gcc*

Below are the commands I used:

*aarch64-linux-gnu-gcc -static -static-libgcc -static-libstdc++ myhello.c
-o myhellobuild/ARM/gem5.opt configs/learning_gem5/part1/simple.py*

Below is the error:
gem5 Simulator System.  http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.

gem5 version 21.2.0.0
gem5 compiled Jan 24 2023 23:16:23
gem5 started Jan 24 2023 23:21:13
gem5 executing on ubuntu-linux-22-04-desktop, pid 156963
command line: build/ARM/gem5.opt configs/learning_gem5/part1/simple.py

Global frequency set at 1000000000000 ticks per second
warn: failed to generate dot output from m5out/config.dot
build/ARM/mem/mem_interface.cc:791: warn: DRAM device capacity (8192
Mbytes) does not match the address range assigned (512 Mbytes)
0: system.remote_gdb: listening for remote gdb on port 7000
Beginning simulation!
build/ARM/sim/simulate.cc:194: info: Entering event queue @ 0.  Starting
simulation...
build/ARM/sim/syscall_emul.cc:74: warn: ignoring syscall
set_robust_list(...)
build/ARM/sim/syscall_desc.hh:209: fatal: Syscall 398 out of range
Memory Usage: 649816 KBytes


If anyone knows how to solve the cross compiler issue, please give a reply.

Thanks
- Ikram
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org

Reply via email to