[gem5-users] Re: Hi does gem5 Ruby support pthreads lock and unlock

2023-06-29 Thread Srikanta Chaitanya via gem5-users
Thanks for the update. On Thu, Jun 29, 2023, 10:08 PM Jason Lowe-Power wrote: > Full system mode is fully supported for RISC-V. There should not be any > problems with running pthreads on RISC-V. > > (Side note: There could be a small bug in the RISC-V atomic > instructions... we're looking into

[gem5-users] Re: Hi does gem5 Ruby support pthreads lock and unlock

2023-06-29 Thread Jason Lowe-Power via gem5-users
Full system mode is fully supported for RISC-V. There should not be any problems with running pthreads on RISC-V. (Side note: There could be a small bug in the RISC-V atomic instructions... we're looking into it, but haven't been able to track it down.) Cheers, Jason On Thu, Jun 29, 2023 at 4:05

[gem5-users] Re: Hi does gem5 Ruby support pthreads lock and unlock

2023-06-29 Thread Srikanta Chaitanya via gem5-users
Thanks for the reply. On Thu, Jun 29, 2023, 2:11 PM Víctor Soria wrote: > Hi Srikanta, > > In the past, I've been able to run pthreads mutex with ruby using Arm > and FS mode. By default, pthreads use syscalls to the OS to sleep or > wake up threads. As far as I know, FS does not work with RISCV

[gem5-users] Re: Hi does gem5 Ruby support pthreads lock and unlock

2023-06-29 Thread Víctor Soria via gem5-users
Hi Srikanta, In the past, I've been able to run pthreads mutex with ruby using Arm and FS mode. By default, pthreads use syscalls to the OS to sleep or wake up threads. As far as I know, FS does not work with RISCV. Therefore, you could try to select the pthread mutex type to spinlock to avoi