Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for System Call Emulation #14

Open
kathlenemagnus-mips opened this issue Nov 18, 2024 · 0 comments
Open

Add Support for System Call Emulation #14

kathlenemagnus-mips opened this issue Nov 18, 2024 · 0 comments

Comments

@kathlenemagnus-mips
Copy link
Contributor

System call emulation is when a functional model handles the execution of system calls made by the ecall instruction. When system call emulation is not enabled, system calls are handled like exceptions and the workload is expected to include a software implementation of the requested system call.

Atlas should support both modes of handling system calls. A system call emulator class should be created that handles common system calls like exit, read, write, getcwd, etc.

Currently, the ecall instruction handler supports emulation of the exit command. See atlas/core/inst_handlers/rv64/i/ecall.cpp at main · sparcians/atlas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant