[gem5-users] Debugging std::bad_alloc memory errors in gem5

2020-03-24 Thread Subhankar Pal
Hi, I am trying to run simulations in SE mode with a 1000+ (simple) cores. I get the following error once m5.instantiate() is called. Traceback (most recent call last): File "", line 1, in File "/home/subh/gem5/src/python/m5/main.py", line 436, in main exec filecode in scope File “confi

[gem5-users] Run APK on Gem5

2020-03-24 Thread ABD ALRHMAN ABO ALKHEEL
Hi All, I wanna run the apk binary files on ARM gem5 in se mode. Any help would be appreciated. Best Regards ___ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Re: [gem5-users] Using the REX prefix in one byte opcodes to modify the instruction to decode

2020-03-24 Thread Gabe Black
The "leg" field of the ExtMachInst is of type LegacyPrefixVector which is a bit vector which says whether a legacy prefix was present for a given instruction, and is not the actual prefix itself. Decoding based on LEGACY_DECODEVAL switches based on the top 4 bits of that value, bits 7-4. The top bi

[gem5-users] Using the REX prefix in one byte opcodes to modify the instruction to decode

2020-03-24 Thread Muhammad Aamir
Hi everyone, I am trying to add my own custom MOV instruction, and with respect to this post on stackoverflow: https://stackoverflow.com/questions/60745735/which-mov-instructions-in-the-x86-are-not-used-or-the-least-used-and-can-be-use According to the post one way to add a custom instruction whi

Re: [gem5-users] Simulation OpenMP Applications with se.py

2020-03-24 Thread Abhishek Singh
Hi, Before it was required to use m5 threads but now you are not required to use m5thread library On Tue, Mar 24, 2020 at 5:47 PM Muhammet Abdullah Soytürk < muhammetabdullahsoyt...@gmail.com> wrote: > Hi all, > > I am trying to simulate an openmp application with 4 cores in SE mode. It > seems

[gem5-users] Simulation OpenMP Applications with se.py

2020-03-24 Thread Muhammet Abdullah Soytürk
Hi all, I am trying to simulate an openmp application with 4 cores in SE mode. It seems to be working fine when I run it with this command: build/RISCV/gem5.opt configs/example/se.py -c --caches --l2cache --cpu-type=DerivO3CPU -n 4 but while I was searching I have seen that there was something

[gem5-users] Correct Way to Fast-Forward

2020-03-24 Thread Muhammet Abdullah Soytürk
Hi all, I want to fast forward my benchmark during its input graph initialization phase and then switch to O3 cpu. I have a couple questions about that. - My system is a multicore system (let's say 4 cores). Should I fast forward with 4 atomic cpus and restore with 4 O3 cpus or one cpu for fast-f

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Giacomo Travaglini
Put a pdb breakpoint: import pdb pdb.set_trace() at the beginning of the do_dot helper in src/python/m5/util/dot_writer.py The run and debug. You can see what is going on. Giacomo From: gem5-users On Behalf Of Md Rubel Ahmed Sent: 24 March 2020 18:29 To: gem5 users mailing list Subject: Re:

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Md Rubel Ahmed
Hi Giacomo, The following commands I executed till now but find no m5out/config.dot.svg. pip install pydot scons build/X86/gem5.opt -j9 build/X86/gem5.opt configs/example/se.py --cmd=tests/test-progs/hello/bin/x86/linux/hello --cpu-type=TimingSimpleCPU --l1d_size=64kB --l1i_size=16kB --l2_size=12

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Giacomo Travaglini
You should just run your simulation. Gem5 will automatically detect pydot at runtime (by not failing the import) and will generate the file for you Together with the classical config.ini Giacomo From: gem5-users On Behalf Of Md Rubel Ahmed Sent: 24 March 2020 17:59 To: gem5 users mailing list

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Md Rubel Ahmed
Hi Giacomo, I have installed pydot, can you elaborate a bit on how to get config.dot.pdf? Thanks, *Rubel Ahmed* *USF-CSE* *Tampa, FL* On Tue, Mar 24, 2020 at 1:41 PM Giacomo Travaglini < giacomo.travagl...@arm.com> wrote: > Hi Rubel, > > > > You could use config.ini, but you can generate a bett

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Giacomo Travaglini
Hi Rubel, You could use config.ini, but you can generate a better visual representation by installing pydot. Then when you run your simulation, you would generate a representation of your system in: m5out/config.dot.pdf or m5out/config.dot.svg This is definitely the option you are looking fo

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Muhammet Abdullah Soytürk
Hi Rubel, The command you execute does not simulate the system that you put in the image. There is no l2 bus and l2 cache in the system that you simulate. If you want to have l2 cache you need to add --l2cache as an argument to the script. In order to see what's on the system you execute, you sho

Re: [gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Abhishek Singh
Hi, Most accurate way is to read the code. O3CPU does have http://www.m5sim.org/Visualization but it will not give the diagram below. Also, learning gem5 tutorial is a great starting point to make your own architecture or the architecture shown below On Tue, Mar 24, 2020 at 1:13 PM Md Rubel Ahmed

[gem5-users] How to get the high-level architectural view of the system I am simulating?

2020-03-24 Thread Md Rubel Ahmed
Hi all, Lets say I am using the following command to simulate a system on gem5: build/X86/gem5.opt configs/example/se.py --cmd=tests/test-progs/hello/bin/x86/linux/hello --cpu-type=TimingSimpleCPU --l1d_size=64kB --l1i_size=16kB --caches How can I get a high-level view/diagram of the system that

Re: [gem5-users] Problem passing a SimObject as Parameter

2020-03-24 Thread Francisco Carlos
Thank you for your reply, Gabe. Your answer solves my problem. The error was in the import statement, where I used the object name instead of the python file name. Thanks a lot. I was stuck in this problem.