20 lines
723 B
Rust
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),
|
|
}
|