Hello, I'm trying to execute a simple python script and pass command line parameters to just do simple addition of numbers in gem5 Command: sudo ./build/X86/gem5.opt configs/example/se.py --cmd /usr/bin/python3 --options "sum.py 3 4"
sum.py source code: import sys x=int(sys.argv[1]) y=int(sys.argv[2]) sum=x+y print("The addition is :",sum) Error I got: osboxes@osboxes:~/gem5$ sudo ./build/X86/gem5.opt configs/example/se.py --cmd /usr/bin/python3 --options "sum.py 3 4" gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 21.0.0.0 gem5 compiled Aug 5 2021 21:03:24 gem5 started Aug 11 2021 20:44:15 gem5 executing on osboxes, pid 4072 command line: ./build/X86/gem5.opt configs/example/se.py --cmd /usr/bin/python3 --options 'sum.py 3 4' warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` warn: membus.master is deprecated. `master` is now called `mem_side_ports` warn: membus.master is deprecated. `master` is now called `mem_side_ports` warn: membus.slave is deprecated. `slave` is now called `cpu_side_ports` Global frequency set at 1000000000000 ticks per second warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (512 Mbytes) warn: Not reserving swap space. May cause SIGSEGV on actual usage 0: system.remote_gdb: listening for remote gdb on port 7000 ** REAL SIMULATION ** info: Entering event queue @ 0. Starting simulation... warn: ignoring syscall access(...) warn: ignoring syscall access(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall access(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall mprotect(...) warn: ignoring syscall set_robust_list(...) warn: ignoring syscall rt_sigaction(...) (further warnings will be suppressed) warn: ignoring syscall rt_sigprocmask(...) (further warnings will be suppressed) fatal: Syscall 318 out of range Memory Usage: 705664 KBytes Can anyone let me know where I'm going wrong in executing the python script. Anyhelp would be appreciated. Thanks
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s