The output_binary file is an executable file. You can upload it to the
Linux Kernel image before running GEM5, or you can pass it to GEM5 as a
script in FS mode.

This GEM5 matrix is useful for your reference:
http://www.gem5.org/Status_Matrix



Best regards,
Abbas Fairouz


-------------------------------------------------
Abbas Fairouz, PhD candidate
Dept. of ECE, Texas A&M University
College Station, TX 77843, USA
-------------------------------------------------


On Thu, Aug 16, 2018 at 1:58 PM, Ciro Santilli <[email protected]>
wrote:

> So output_binary is  a regular executable?
>
> I thought fs.py (present on the command you provided) could only run full
> system images, and that regular executables would requires se.py.
>
> On Thu, Aug 16, 2018 at 7:05 PM, Abbas Fairouz <[email protected]> wrote:
>
>> Hi Ciro,
>>
>> The GEM5 version is: gem5-stable-0e86fac7254c
>>
>> The binary is generated by cross-compiled gcc with gem5 instructions:
>>
>> gcc --static -o output_binary filename.c -I ~/gem5/util/m5
>> ~/gem5/util/m5/m5op_x86.S
>>
>> When I generate the output_binary in Ubuntu environment, it works
>> without errors in GEM5. But, when I generate the in CentOS environment or
>> Debian environment, it throughs the previous error (in the previous email),
>> and GEM5 simulation hangs with that error.
>>
>> I think it is a gcc library issue, but I don't know how to debug that.
>>
>> Any suggestions?
>>
>>
>> "By "When I run the same binary file on my actual machine, it runs
>> perfect." do you mean you have booted your host machine into it? That's
>> brave :-)"
>>
>> I meant the following: when I generate the output_binary file (without
>> m5_ops, ie. m5_dumpstat), it runs without errors in my Ubuntu, CentOS, and
>> Debian machines.
>>
>>
>>
>> Best regards,
>> Abbas Fairouz
>>
>>
>> -------------------------------------------------
>> Abbas Fairouz, PhD candidate
>> Dept. of ECE, Texas A&M University
>> College Station, TX 77843, USA
>> -------------------------------------------------
>>
>>
>> On Thu, Aug 16, 2018 at 5:53 AM, Ciro Santilli <[email protected]>
>> wrote:
>>
>>> What is your binary / how to generate it? What is your gem5 revision?
>>>
>>> By "When I run the same binary file on my actual machine, it runs
>>> perfect." do you mean you have booted your host machine into it? That's
>>> brave :-)
>>>
>>> On Thu, Aug 16, 2018 at 12:05 AM, Abbas Fairouz <[email protected]>
>>> wrote:
>>>
>>>> Hi there,
>>>>
>>>> sorry for duplicate emails. I forgot to add a subject before.
>>>>
>>>> I trying to run a binary file on GEM5, but I'm getting a weird error
>>>> and it is stuck on it. When I run the same binary file on my actual
>>>> machine, it runs perfect.
>>>>
>>>> The error is highlighted in yellow bellow:
>>>>
>>>>
>>>> **************************
>>>> GEM5 terminal output:
>>>> ***************************
>>>>
>>>> *gem5ht64*~> ./build/X86/gem5.opt -d m5out/test
>>>> ./configs/example/fs.py --cpu-clock=1GHz --caches --l2cache
>>>> --l1d_size=128kB --checkpoint-dir=m5out/cpt_general -r 1
>>>> --script=myscripts/swhash_test --mem-type=ddr3_1600_x64 --cpu-type=detailed
>>>>
>>>> gem5 Simulator System.  http://gem5.org
>>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__gem5.org_&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=C2txZJLF0DViysZiLgpWULyYNApkVCF47t-gyMeb004&m=mnot96zd4sFxPm3sZjNKkKsfw_aNJ2GDmneAm4vbSxc&s=Hw3jfk10ubhXQa6Qn1e-9zi8RJvnA4WGPmq5TmJwgKs&e=>
>>>>
>>>> gem5 is copyrighted software; use the --copyright option for details.
>>>>
>>>>
>>>> gem5 compiled Aug 15 2018 13:11:54
>>>>
>>>> gem5 started Aug 15 2018 17:58:36
>>>>
>>>> gem5 executing on ecesvj10101.ece.tamu.edu
>>>>
>>>> command line: ./build/X86/gem5.opt -d m5out/test
>>>> ./configs/example/fs.py --cpu-clock=1GHz --caches --l2cache
>>>> --l1d_size=128kB --checkpoint-dir=m5out/cpt_general -r 1
>>>> --script=myscripts/swhash_test --mem-type=ddr3_1600_x64 --cpu-type=detailed
>>>>
>>>> Global frequency set at 1000000000000 ticks per second
>>>>
>>>> info: kernel located at: /home/grads/a/afairouz/201_has
>>>> h_GEM5/gem5/system/binaries/x86_64-vmlinux-2.6.28.4-smp
>>>>
>>>>       0: rtc: Real-time clock set to Sun Jan  1 00:00:00 2012
>>>>
>>>> Listening for com_1 connection on port 3456
>>>>
>>>> warn: Reading current count from inactive timer.
>>>>
>>>> 0: system.remote_gdb.listener: listening for remote gdb #0 on port 7000
>>>>
>>>> Switch at curTick count:10000
>>>>
>>>> info: Entering event queue @ 4982563282000.  Starting simulation...
>>>>
>>>> Switched CPUS @ tick 4982563292000
>>>>
>>>> switching cpus
>>>>
>>>> **** REAL SIMULATION ****
>>>>
>>>> info: Entering event queue @ 4982563292000.  Starting simulation...
>>>>
>>>> warn: Don't know what interrupt to clear for console.
>>>>
>>>> warn: x86 cpuid: unimplemented function 7
>>>>
>>>> warn: Tried to clear PCI interrupt 14
>>>>
>>>>
>>>> *****************************************
>>>> GEM5 terminal of port 3456 output:
>>>> ******************************************
>>>>
>>>> *gem5ht64*~> ./m5term localhost 3456
>>>>
>>>> ==== m5 slave terminal: Terminal 0 ====
>>>>
>>>> Loading new script...
>>>>
>>>> runscript[946]: segfault at 814840 ip 000000000041ce03 sp
>>>> 00007fffba11cb98 error 6 in runscript[400000+bd000]
>>>>
>>>> Clocksource tsc unstable (delta = -499999916 ns)
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Does anyone ran into this issue before?
>>>>
>>>>
>>>>
>>>>
>>>> Best regards,
>>>> Abbas Fairouz
>>>>
>>>>
>>>> -------------------------------------------------
>>>> Abbas Fairouz, PhD candidate
>>>> Dept. of ECE, Texas A&M University
>>>> College Station, TX 77843, USA
>>>> -------------------------------------------------
>>>>
>>>>
>>>> _______________________________________________
>>>> gem5-users mailing list
>>>> [email protected]
>>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim.org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=C2txZJLF0DViysZiLgpWULyYNApkVCF47t-gyMeb004&m=mnot96zd4sFxPm3sZjNKkKsfw_aNJ2GDmneAm4vbSxc&s=LWQEBXvZaUElEIpuk5kP59J45iHm85en_GUp96EeqM0&e=>
>>>>
>>>
>>>
>>> _______________________________________________
>>> gem5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim.org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=C2txZJLF0DViysZiLgpWULyYNApkVCF47t-gyMeb004&m=_wuiQfvUfi9Grge-1UiPAw_mKDVFKSuhOaKIqtWVfi0&s=av-itdr42fiQOur5jw4ZlsGVTIXSXiYp5_fJwV8Gfo4&e=>
>>>
>>
>>
>> _______________________________________________
>> gem5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>> <https://urldefense.proofpoint.com/v2/url?u=http-3A__m5sim.org_cgi-2Dbin_mailman_listinfo_gem5-2Dusers&d=DwMFaQ&c=ODFT-G5SujMiGrKuoJJjVg&r=C2txZJLF0DViysZiLgpWULyYNApkVCF47t-gyMeb004&m=_wuiQfvUfi9Grge-1UiPAw_mKDVFKSuhOaKIqtWVfi0&s=av-itdr42fiQOur5jw4ZlsGVTIXSXiYp5_fJwV8Gfo4&e=>
>>
>
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to