Skip to content

RUST support within GEM5 #2448

Answered by ZWang0987
ZWang0987 asked this question in Q&A
Jul 16, 2025 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hey, so I found a temporary solution — you can use ignoreFunc within the se_workload.cc file to handle certain syscall issues. For example, in my Rust code I needed to read files, and while the open and read syscalls worked, the statx syscall was causing problems. Even though statxFunc was implemented in syscall_emul.cc, it wasn’t linked in se_workload.cc. When I tried to link it like the other syscalls, it caused errors. As a workaround, I used ignoreFunc for statx, and then my Rust code ran successfully. So, if others are running into similar issues with Rust syscalls in gem5, especially with file-related operations, try using ignoreFunc as a workaround.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ZWang0987
Comment options

@ZWang0987
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ZWang0987
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants