[gem5-users] --Script parameter cannot be used

2020-11-08 Thread -17 via gem5-users
Hi all:
I try to use the ??-- script ??parameter when running gem5 FS mode. I start 
gem5 as follows:
/build/ARM/gem5.opt -d fs_results/rcstest configs/example/fs.py 
--cpu-type=AtomicSimpleCPU -n 1 
--disk-image=/home/fusiqing/gem5-20.1/2017sys/full_system_images/disks/gem5_ubuntu16.img
 
--kernel=/home/fusiqing/gem5-20.1/2017sys/full_system_images/binaries/vmlinux
 
--script=/home/gem5-20.1/configs/boot/halt.sh 

I started the simulation, but the script didn't run.The same goes for other 
files under /example/boot/.
But in /config.ini I can see:
readfile=/home/gem5-20.1/configs/boot/halt.sh
May I ask what error occurred when I used the script?
Thanks in advance.





/**/NUDT 
 Siqing Fu


___
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: Configure multi-bank cache in ruby ​mode with MESI coherence protocol

2020-11-08 Thread zhen bang via gem5-users
Hello Jason:
Comparing resource stalls to model banking with "real banking", 
(1) I think the biggest difference is that the former does not implement a port 
for each bank, is it right?
(2) I have read MOESI_AMD_Base-corepaire.sm that you have mentioned, during the 
implementing L0 multi-bank, I have doubt whether need to add L1 RequestType? 
(In part of the transition of L0cache, the tagarray or dataarray of L1 should 
be accessed?)

  enumeration(RequestType, desc="To communicate stats from transitions to 
recordStats") {
IDataArrayRead,desc="Read the data array";
IDataArrayWrite,   desc="Write the data array";
ITagArrayRead, desc="Read the data array";
ITagArrayWrite,desc="Write the data array";
DDataArrayRead,desc="Read the data array";
DDataArrayWrite,   desc="Write the data array";
DTagArrayRead, desc="Read the data array";
DTagArrayWrite,desc="Write the data array";

for example, should I add L1DataArrayRead ?
Looking forward to your reply.
___
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: How to use checkpoint for a specific code in the Gem5 full system mode.

2020-11-08 Thread Hoa Nguyen via gem5-users
Hi,

It should be `/sbin/m5 exit` instead of `/sbin/m5`.

Regards,
Hoa Nguyen

On 11/7/20, Hoa Nguyen  wrote:
> Hi,
>
> One way to do it is to use the `--debug-start TICK` option, which will
> start logging after `TICK` ticks.
>
> To figure out the number of simulated ticks, you can run `/sbin/m5` in
> the guest right before the ROI, then use `m5.curTick()` in the gem5
> system config. The output would be useful if the simulation before
> reaching the ROI is deterministic; but if the simulation is not, the
> output would provide a somewhat useful estimation.
>
> Regards,
> Hoa Nguyen
>
> On 11/6/20, Hasan, S M Shamimul via gem5-users  wrote:
>> Hello.
>>
>> I am running the Gem5 in full system mode. I am using the following
>> command.
>>
>> ===
>> build/X86/gem5.opt --debug-flags=DRAM --debug-file=trace.out
>> configs/example/fs.py --disk-image="/home/cosmogan-image/cosmogan"
>> --kernel="/home/gem5/pkr_cp/other/vmlinux-4.9.238"
>> --script="/home/gem5/pkr_cp/other/tmp.sh"
>> 
>>
>> My "tmp.sh" file contains the following code.
>> 
>> #!/bin/sh
>> /sbin/m5 checkpoint
>> cd /cosmoGAN/networks
>> python run_dcgan.py
>> /sbin/m5 exit
>> 
>>
>> The problem is the "trace.out" file that I got contains lots of memory
>> traces that I do not need (e.g., system boot related memory trace). I
>> need
>> memory traces for only the following code "python run_dcgan.py." How can
>> I
>> get it? Please let me know. Thanks a lot in advance.
>>
>> Sincerely,
>> S.M.Shamimul Hasan
>>
>>
>>
>>
>
___
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