I think you have to compile with -static in se mode.
________________________________ 发件人: krishnan gosakan via gem5-users<gem5-users@gem5.org<mailto:gem5-users@gem5.org>> 收件人: gem5 users mailing list<gem5-users@gem5.org<mailto:gem5-users@gem5.org>> 抄送: krishnan gosakan<krishnan.gosa...@gmail.com<mailto:krishnan.gosa...@gmail.com>> 主题: [gem5-users] Compiling code to run in se mode 时间: 2021-05-24 00:48:11 Hi all, I hope all are doing well. I just want to know how to compile c code using gcc to run it in se mode of gem5. I tried compiling a simple hello world code which is exactly similar to the code available in tests/test-progs/hello/src I compiled it as gcc -o hello hello.c -m32 The above command compiles as 32 bit application. It doesn't work as expected. I have attached my code in this mail. Output: info: Running on GenuineIntel gem5 Simulator System. http://gem5.org gem5 is copyrighted software; use the --copyright option for details. gem5 compiled May 23 2021 20:07:20 gem5 started May 23 2021 22:14:40 gem5 executing on cryptenious, pid 17476 command line: ./build/X86/gem5.opt configs/example/se.py -c ./hello --caches --l2cache --mem-size 4096MB --sys-clock 4GHz --l1d_size 32kB --l1i_size 32kB --l2_size 256kB --l3_size 8192kB --IcebergEnabled Global frequency set at 1000000000000 ticks per second warn: DRAM device capacity (8192 Mbytes) does not match the address range assigned (4096 Mbytes) 0: system.remote_gdb: listening for remote gdb on port 7000 **** REAL SIMULATION **** info: Entering event queue @ 0. Starting simulation... Exiting @ tick 3565000 because exiting with last active thread context The print statement is not working Any help would be highly appreciated. Thanks in advance. -- Regards, Krishnan.
_______________________________________________ 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