Re: [gem5-users] Pass address bounds of an array from application to gem5

2020-03-19 Thread Armand Behroozi
Thank you so much! Will take a look. Also wanted to thank you for your tutorials and learning_gem5 code. My research would not be possible without them. Regards, Armand On Thu, Mar 19, 2020 at 6:36 PM Jason Lowe-Power wrote: > Hi Armand, > > You can definitely do this in gem5! We have what

Re: [gem5-users] Cannot restoring from fs HPI checkpoint

2020-03-19 Thread Giacomo Travaglini
Heng, could you open a bug in JIRA for this? Many thanks Giacomo -Original Message- From: gem5-users On Behalf Of HENG ZHUO Sent: 19 March 2020 15:42 To: gem5 users mailing list Subject: Re: [gem5-users] Cannot restoring from fs HPI checkpoint Hi Giacomo, Thanks for pointing it out,

Re: [gem5-users] Pass address bounds of an array from application to gem5

2020-03-19 Thread Jason Lowe-Power
Hi Armand, You can definitely do this in gem5! We have what we call m5ops or "magic instructions" that allow for these kinds of "hypercalls" from the simulated system into the simulator. The documentation has a little information about this (http://www.gem5.org/documentation/general_docs/m5ops/).

[gem5-users] Pass address bounds of an array from application to gem5

2020-03-19 Thread Armand Behroozi
Hello All, I wanted to know if there is a method for passing data (such as the pointer to an array returned from malloc) from an application to gem5 while the application is running. Currently, in order to pass gem5 the address bounds, I run the application without gem5, print out the address

[gem5-users] run .apk file on gem5

2020-03-19 Thread ABD ALRHMAN ABO ALKHEEL
Hi All, How i can run an android application on Gem5? 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] Cannot restoring from fs HPI checkpoint

2020-03-19 Thread HENG ZHUO
Hi Giacomo, Thanks for pointing it out, it helps a lot in defining the problem, although I think it needs much more effort than I was thinking. So, the problem here is that, when you already restoring from a checkpoint, and then drop checkpoints, the cpu are now called testsys.switch_cpu, you

Re: [gem5-users] How can I make my custom x86 macro op be recognized from GCC

2020-03-19 Thread Abhishek Singh
Hi, Instead macro op name use the opcode Eg __asm__(".byte 0xcc, 0x00, 0xcc"); You will need to have complete knowledge up on representing register names using opcode You can find it x86 intel manual On Thu, Mar 19, 2020 at 10:28 AM Muhammad Aamir wrote: > Hi everyone, > > I have made a

[gem5-users] How can I make my custom x86 macro op be recognized from GCC

2020-03-19 Thread Muhammad Aamir
Hi everyone, I have made a custom x86 macro op and I wish to simulate its effects but to do that I need it to be recognized in my C code(am using my custom macroop via inline assembly). but it will not compile as GCC wont recognize it as it is not a basic x86 instruction. Is there anyway e.g. by

Re: [gem5-users] Cannot restoring from fs HPI checkpoint

2020-03-19 Thread Giacomo Travaglini
It probably happens that when you try to restore (unserialize) the checkpoint, The BaseCPU::unserialize method in src/cpu/base.c is trying to restore the _pid field, but id doesn't find it in the checkpoint. If you take a look at the checkpoint you will see that under cpu0 it is probably

[gem5-users] Cannot restoring from fs HPI checkpoint

2020-03-19 Thread HENG ZHUO
Hi, I boot up the kernel and do preparation using AtomicSimpleCPU, then restore with HPI to run the workload, this part was fine. Then, when tuning the actual workload, I was using —take-checkpoint to drop checkpoints. However, I was not able to restore from these checkpoints. Commands used