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

2020-03-20 Thread Ciro Santilli
This information may also be of interest: https://cirosantilli.com/linux-kernel-module-cheat/#m5ops On Fri, Mar 20, 2020 at 5:33 AM Armand Behroozi wrote: > > 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

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 w

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 bou