Hi Ikram, It seems like your program is using a system call (#398) which has not been tested or implemented in gem5. This can be because of a newer version of the c library or compiler. One option is to ignore this system call and see if your program still works. As a reference you can look at how the other system call in your program is ignored (set_robust_list) in the gem5 source code here: "src/arch/arm/linux/se_workload.cc".
-Ayaz On Tue, Jan 24, 2023 at 10:12 AM IKRAM via gem5-users <gem5-users@gem5.org> wrote: > 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 >
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org