pr 2.4
This commit is contained in:
@@ -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),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user