[gem5-users] Re: ARM and opening a file
FYI the debug flag option is --debug-flags=SyscallAll Kind Regards Giacomo > -Original Message- > From: Gabe Black via gem5-users > Sent: 21 April 2021 01:20 > To: gem5 users mailing list > Cc: Gabe Black > Subject: [gem5-users] Re: ARM and opening a file > > If this works on x86, the chances are good that the system call > implementations are fine since they're likely the same between the two, but > there could be some glue (flag translation, which system calls that are > hooked up) which is different. You should try enabling the system call > DPRINTF flags (--debug-flags on the command line) to see what system calls > are being called, and what they're returning. If a system call which isn't > implemented is being called, there should be a message about it from gem5. > > Gabe > > On Tue, Apr 20, 2021 at 1:45 PM Bobby Bruce via gem5-users us...@gem5.org <mailto:gem5-users@gem5.org> > wrote: > > > Hey Majid, > > Are you running in FS or SE mode? If you're running in SE mode, I > don't find this too surprising as not all System calls are currently > supported. > > > Kind regards, > Bobby > -- > > Dr. Bobby R. Bruce > Room 2235, > Kemper Hall, UC Davis > Davis, > CA, 95616 > > > web: https://www.bobbybruce.net > > > > On Wed, Apr 14, 2021 at 8:16 PM Majid Jalili via gem5-users us...@gem5.org <mailto:gem5-users@gem5.org> > wrote: > > > Hi, > > When I was running SPEC CPU 2017, in particular 505.mcf_r, I > noticed that if gem5 should open a file, it will not make any progress. I dig > into mcf code and found when the read_min function is called the simulation > freezes. > Then I started running a simple benchmark as follows, that > just prints the content of a file: > > https://www.geeksforgeeks.org/c-program-print-contents- > file/ > > > For this example, I also run into the same problem. I tried X86 > and everything works just fine > > Repo: I tried both dev and stable > gcc: aarch64-linux-gnu-gcc-7 aarch64-linux-gnu-gcc-5 > > Any help is great! > > > > ___ > gem5-users mailing list -- gem5-users@gem5.org > <mailto:gem5-users@gem5.org> > To unsubscribe send an email to gem5-users- > le...@gem5.org <mailto:gem5-users-le...@gem5.org> > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s > > ___ > gem5-users mailing list -- gem5-users@gem5.org <mailto:gem5- > us...@gem5.org> > To unsubscribe send an email to gem5-users-le...@gem5.org > <mailto:gem5-users-le...@gem5.org> > %(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. ___ 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
[gem5-users] Re: ARM and opening a file
If this works on x86, the chances are good that the system call implementations are fine since they're likely the same between the two, but there could be some glue (flag translation, which system calls that are hooked up) which is different. You should try enabling the system call DPRINTF flags (--debug-flags on the command line) to see what system calls are being called, and what they're returning. If a system call which isn't implemented is being called, there should be a message about it from gem5. Gabe On Tue, Apr 20, 2021 at 1:45 PM Bobby Bruce via gem5-users < gem5-users@gem5.org> wrote: > Hey Majid, > > Are you running in FS or SE mode? If you're running in SE mode, I don't > find this too surprising as not all System calls are currently supported. > > Kind regards, > Bobby > -- > Dr. Bobby R. Bruce > Room 2235, > Kemper Hall, UC Davis > Davis, > CA, 95616 > > web: https://www.bobbybruce.net > > > On Wed, Apr 14, 2021 at 8:16 PM Majid Jalili via gem5-users < > gem5-users@gem5.org> wrote: > >> Hi, >> When I was running SPEC CPU 2017, in particular 505.mcf_r, I noticed that >> if gem5 should open a file, it will not make any progress. I dig into mcf >> code and found when the read_min function is called the simulation freezes. >> Then I started running a simple benchmark as follows, that just prints >> the content of a file: >> >> https://www.geeksforgeeks.org/c-program-print-contents-file/ >> >> For this example, I also run into the same problem. I tried X86 and >> everything works just fine >> >> Repo: I tried both dev and stable >> gcc: aarch64-linux-gnu-gcc-7 aarch64-linux-gnu-gcc-5 >> >> Any help is great! >> >> >> ___ >> 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 > > ___ > 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 ___ 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
[gem5-users] Re: ARM and opening a file
Hey Majid, Are you running in FS or SE mode? If you're running in SE mode, I don't find this too surprising as not all System calls are currently supported. Kind regards, Bobby -- Dr. Bobby R. Bruce Room 2235, Kemper Hall, UC Davis Davis, CA, 95616 web: https://www.bobbybruce.net On Wed, Apr 14, 2021 at 8:16 PM Majid Jalili via gem5-users < gem5-users@gem5.org> wrote: > Hi, > When I was running SPEC CPU 2017, in particular 505.mcf_r, I noticed that > if gem5 should open a file, it will not make any progress. I dig into mcf > code and found when the read_min function is called the simulation freezes. > Then I started running a simple benchmark as follows, that just prints the > content of a file: > > https://www.geeksforgeeks.org/c-program-print-contents-file/ > > For this example, I also run into the same problem. I tried X86 and > everything works just fine > > Repo: I tried both dev and stable > gcc: aarch64-linux-gnu-gcc-7 aarch64-linux-gnu-gcc-5 > > Any help is great! > > > ___ > 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 ___ 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