Hi , I was trying to run the hello world example on GEM5 whose source file was compiled using:
**arm-linux-gnueabi-gcc -mtune=cortex-m4 -mcpu=cortex-m4 --static -march=armv7e-m -mthumb hello.c -o hello_32** And when i try to run it on GEM5, i get the following: **./build/ARM/gem5.opt ./configs/example/arm/starter_se.py --cpu minor --cpu-freq 0.2GHz ./tests/hello_32** gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 version 21.2.1.0 gem5 compiled May 13 2022 14:15:20 gem5 started May 14 2022 17:53:42 gem5 executing on eden, pid 46050 command line: ./build/ARM/gem5.opt ./configs/example/arm/starter_se.py --cpu minor --cpu-freq 0.2GHz ./tests/hello_32 info: 1. command and arguments: \['./tests/hello_32'\] Global frequency set at 1000000000000 ticks per second warn: No dot file generated. Please install pydot to generate the dot file and pdf. build/ARM/mem/mem_interface.cc:791: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (1024 Mbytes) build/ARM/mem/mem_interface.cc:791: warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (1024 Mbytes) build/ARM/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated. build/ARM/base/statistics.hh:280: warn: One of the stats is a legacy stat. Legacy stat is a stat that does not belong to any statistics::Group. Legacy stat is deprecated. 0: system.remote_gdb: listening for remote gdb on port 7000 build/ARM/sim/simulate.cc:194: info: Entering event queue @ 0. Starting simulation... build/ARM/sim/syscall_emul.hh:1014: warn: readlink() called on '/proc/self/exe' may yield unexpected results in various settings. Returning '/home/tom/Documents/gem5/tests/hello_32' build/ARM/sim/mem_state.cc:443: info: Increasing stack size by one page. build/ARM/sim/syscall_emul.cc:74: warn: ignoring syscall mprotect(...) build/ARM/arch/arm/faults.cc:831: panic: Attempted to execute unknown instruction (inst 0xffb6eaff) Memory Usage: 2235884 KBytes Program aborted at tick 108735000 \--- BEGIN LIBC BACKTRACE --- ./build/ARM/gem5.opt(+0x1e843b0)\[0x55be4f7603b0\] ./build/ARM/gem5.opt(+0x1ea16be)\[0x55be4f77d6be\] /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420)\[0x7f13fd9ae420\] /lib/x86_64-linux-gnu/libc.so.6(gsignal+0xcb)\[0x7f13fcf8800b\] /lib/x86_64-linux-gnu/libc.so.6(abort+0x12b)\[0x7f13fcf67859\] ./build/ARM/gem5.opt(+0x5cb665)\[0x55be4dea7665\] ./build/ARM/gem5.opt(+0x88047d)\[0x55be4e15c47d\] ./build/ARM/gem5.opt(+0x77568c)\[0x55be4e05168c\] ./build/ARM/gem5.opt(+0x77a897)\[0x55be4e056897\] ./build/ARM/gem5.opt(+0x77bf8e)\[0x55be4e057f8e\] ./build/ARM/gem5.opt(+0x7bf879)\[0x55be4e09b879\] ./build/ARM/gem5.opt(+0x1eba9c7)\[0x55be4f7969c7\] ./build/ARM/gem5.opt(+0x1e90a22)\[0x55be4f76ca22\] ./build/ARM/gem5.opt(+0x1ebd334)\[0x55be4f799334\] ./build/ARM/gem5.opt(+0x1ebe08e)\[0x55be4f79a08e\] ./build/ARM/gem5.opt(+0x1904162)\[0x55be4f1e0162\] ./build/ARM/gem5.opt(+0x848ca7)\[0x55be4e124ca7\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x2a8738)\[0x7f13fdc65738\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x8dd8)\[0x7f13fda3af48\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)\[0x7f13fdb87e3b\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyFunction_Vectorcall+0x94)\[0x7f13fdc65114\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)\[0x7f13fda31d6d\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x7d86)\[0x7f13fda39ef6\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x8006b)\[0x7f13fda3d06b\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)\[0x7f13fda31d6d\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalFrameDefault+0x12fd)\[0x7f13fda3346d\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(_PyEval_EvalCodeWithName+0x8fb)\[0x7f13fdb87e3b\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(PyEval_EvalCodeEx+0x42)\[0x7f13fdb881c2\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(PyEval_EvalCode+0x1f)\[0x7f13fdb885af\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x1cfbf1)\[0x7f13fdb8cbf1\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x25f537)\[0x7f13fdc1c537\] /lib/x86_64-linux-gnu/libpython3.8.so.1.0(+0x74d6d)\[0x7f13fda31d6d\] \--- END LIBC BACKTRACE --- Aborted (core dumped) Any information on this would be greatly appreciated.
_______________________________________________ gem5-users mailing list -- gem5-users@gem5.org To unsubscribe send an email to gem5-users-le...@gem5.org