Skip to content

Commit

Permalink
Temporarily no-op sys.nanosleep
Browse files Browse the repository at this point in the history
  • Loading branch information
mininny committed Jan 23, 2025
1 parent 4427116 commit cb5e8b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rvgo/test/syscall_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func TestStateSyscallUnsupported(t *testing.T) {
syscalls := []int{
riscv.SysPrlimit64,
riscv.SysFutex,
riscv.SysNanosleep,
//riscv.SysNanosleep,
}

for _, syscall := range syscalls {
Expand Down
8 changes: 4 additions & 4 deletions rvsol/src/RISCV.sol
Original file line number Diff line number Diff line change
Expand Up @@ -1129,10 +1129,10 @@ contract RISCV is IBigStepper {
// futex - not supported, for now
revertWithCode(0xf001ca11) // unsupported system call
}
case 101 {
// nanosleep - not supported, for now
revertWithCode(0xf001ca11) // unsupported system call
}
// case 101 {
// // nanosleep - not supported, for now
// revertWithCode(0xf001ca11) // unsupported system call
// }
default {
// Ignore(no-op) unsupported system calls
setRegister(toU64(10), toU64(0))
Expand Down

0 comments on commit cb5e8b2

Please sign in to comment.