sp1-core-executor 6.1.0

RISC-V executor for SP1
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::{vm::syscall::SyscallRuntime, SyscallCode, HALT_PC};

pub(crate) fn halt_syscall<'a, RT: SyscallRuntime<'a>>(
    rt: &mut RT,
    _: SyscallCode,
    exit_code: u64,
    _: u64,
) -> Option<u64> {
    let core_mut = rt.core_mut();

    core_mut.set_next_pc(HALT_PC);
    core_mut.set_exit_code(exit_code as u32);
    None
}