2026-03-24 13:40:45 +00:00

20 lines
723 B
Rust

#[derive(Debug, Clone, PartialEq, Eq)]
pub enum LoaderPatchError {
DecodeFailed(prometeu_bytecode::DecodeError),
ResolveFailed(prometeu_hal::syscalls::DeclaredLoadError),
RawSyscallInPreloadArtifact { pc: usize, syscall_id: u32 },
HostcallIndexOutOfBounds { pc: usize, sysc_index: u32, syscalls_len: usize },
UnusedSyscallDecl { sysc_index: u32, module: String, name: String, version: u16 },
HostcallRemaining { pc: usize, sysc_index: u32 },
}
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum VmInitError {
InvalidFormat,
UnsupportedFormat,
ImageLoadFailed(prometeu_bytecode::LoadError),
LoaderPatchFailed(LoaderPatchError),
EntrypointNotFound,
VerificationFailed(String),
}