Hi Srikanta,

You can find the implementation of system calls in src/sim/syscall_emul.cc
(and related files in the same directory). You can use the "strace" tool to
find out the syscalls used by a binary.

As far as multithreading is concerned, I think SE mode is not suitable for
that purpose and you might want to use FS mode of gem5.

-Ayaz

On Sun, Jul 16, 2023 at 9:59 PM Srikanta Chaitanya via gem5-users <
[email protected]> wrote:

> Hi ,
> I am simulating muticore riscv but when i fork threads it count is less
> than my spawn count ,
>
> I just want to read code of system calls , how they are implemented in
> gem5
>
> Please share me file names
>
> Let me know how to identify the system call from elf
>
> Please
> Thanks srikanta
> _______________________________________________
> gem5-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
>
_______________________________________________
gem5-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to