libriscv icon indicating copy to clipboard operation
libriscv copied to clipboard

Provided system calls needs improvement

Open fwsGonzo opened this issue 2 years ago • 2 comments

The provided system calls that comes with the emulator needs to be improved upon to handle basic tasks like reading files and such. Unfortunately, there is a stigma to allowing an emulator full system access, and sanitizing files and paths is not an easy task - especially designing the API and not making so that nobody wants to touch it.

That said, the emulator is not a sandbox. It is a reference implementation that should be able to run basic programs. Any isolation and tight integration into other programs falls out of that scope.

Also, the multi-threading needs to be improved so that it can run basic Go programs.

fwsGonzo avatar Feb 12 '22 02:02 fwsGonzo

System calls are now part of the library itself, and many filesystem system calls are supported. There is also basic sockets support; enough for a TCP listener and basic read and write.

fwsGonzo avatar Feb 27 '22 18:02 fwsGonzo

There is now just enough syscall emulation for a Golang hello world program

fwsGonzo avatar Mar 26 '22 14:03 fwsGonzo