This commit is contained in:
2026-03-24 13:40:44 +00:00
parent df9b248c98
commit 24e7a3b083
3 changed files with 242 additions and 4 deletions
@@ -1,8 +1,30 @@
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum LoaderPatchError {
DecodeFailed(prometeu_bytecode::DecodeError),
ResolveFailed(prometeu_hal::syscalls::DeclaredLoadError),
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),
}