[gem5-users] Running pthread in gem5 se mode

2021-07-24 Thread krishnan gosakan via gem5-users
Hi all, I am trying to run a code with pthread in gem5 se mode. The code runs perfectly when launched from command prompt but pthread_create returns error code 11 when run in se mode. Is there anything special I should do to make pthread run in se mode. From the tests directory, I see that C++ std:

[gem5-users] How to set data breakpoints/watchpoints in FS/SE modes

2021-07-24 Thread Preet Derasari via gem5-users
Hi! I am trying to figure out ways in which I can use gem5's pre-existing SimObjects to set data watchpoints/breakpoints. If there exist no SimObjects to do that I can also create my own but for that, I need to understand the concept of data watchpoints. Can anyone help me with either of these? F

[gem5-users] Re: Running pthread in gem5 se mode

2021-07-24 Thread Hossein Golestani via gem5-users
Hi Krishnan, I use m5threads, which is a light-weight alternative for pthread, to simulate multi-threaded programs in the SE mode: https://github.com/gem5/m5threads (I'm not sure if there are any other ways.) Thanks, Hossein On Sat, Jul 24, 2021 at 11:00 AM krishnan gosakan via gem5-users < gem

[gem5-users] Re: Running pthread in gem5 se mode

2021-07-24 Thread krishnan gosakan via gem5-users
Hi Hossein, I tried building m5threads but it failed. What system configuration are you using to build m5threads? What kernel version do you use and what compiler do you use? On Sat, Jul 24, 2021 at 10:28 PM Hossein Golestani wrote: > Hi Krishnan, > > I use m5threads, which is a light-weight alt