Since you are running the simulation with full-system mode, I think you
can't execute binary code in the same way you do with se mode. In the
full-system mode, you have a complete platform (linux) therefore you can
execute what you want in the same normal way we use it when we have an
operating system. Move all your binaries to the disk image, and when the
Gem5 with linux OS starts (it takes a while) execute them normally, i.e.
./hello (if you moved the hello file to the root of disk image).

On Thu, Feb 25, 2021 at 7:57 PM VAIDYA ROHINI VILAS via gem5-users <
[email protected]> wrote:

> Sir,
> No error was there.
> But,it just run the gem5 in FS mode for given ISA.
> Now, i want to add my own binary file .My doubt is how to add binaray file
> .which command should in use.
> I tried "*--cmd=tests/test-progs/hello/bin/arm/linux/hello "*  command
> which is used for se mode but it gives error in FS mode.
> please help me to add binary file to run gem5 in FS mode.
> Thank you.
>
> ------------------------------
> *From:* husin alhaj ahmade via gem5-users <[email protected]>
> *Sent:* 25 February 2021 21:49
> *To:* gem5 users mailing list <[email protected]>
> *Cc:* husin alhaj ahmade <[email protected]>
> *Subject:* [gem5-users] Re: Run gem5 in FS mode.
>
> Please, can you include the error message that appeared to you?
>
> On Thu, Feb 25, 2021 at 3:59 PM VAIDYA ROHINI VILAS via gem5-users <
> [email protected]> wrote:
>
> Hello,
> I want to run my own binary file in gem5 in fs mode. I am using following
> command :
> *"time build/ALPHA_MESI_Two_Level/gem5.opt configs/example/fs.py
>  --cpu-type=TimingSimpleCPU
> --kernel=/home/coep/gem5/alpha_fsi/binaries/vmlinux_2.6.27-gcc_4.3.4
> --disk-image=/home/coep/gem5/alpha_fsi/disks/linux-parsec-2-1-m5-with-test-inputs.img
> --ruby --l2cache -n16"*
>
> Which command i should add to run my binary file.
> --cmd=tests/test-progs/hello/bin/arm/linux/hello  i tried this command
> which is used for se mode but it gives error in FS mode.
> Please help me for this issue.
> Thank you in advance.
>
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
>
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to