Update constants of bindings
This commit is contained in:
@@ -5,7 +5,7 @@ pub const API_MAJOR: u64 = 2;
|
||||
pub const API_MINOR: u64 = 0;
|
||||
pub const VERSION_MAJOR: u64 = 2;
|
||||
pub const VERSION_MINOR: u64 = 0;
|
||||
pub const VERSION_EXTRA: u64 = 0;
|
||||
pub const VERSION_EXTRA: u64 = 6;
|
||||
pub const SECOND_SCALE: u64 = 1_000_000;
|
||||
pub const MILISECOND_SCALE: u64 = 1_000;
|
||||
|
||||
@@ -128,7 +128,8 @@ pub enum Arch {
|
||||
SPARC = 6,
|
||||
M68K = 7,
|
||||
RISCV = 8,
|
||||
MAX = 9,
|
||||
S390X = 9,
|
||||
MAX = 10,
|
||||
}
|
||||
|
||||
impl TryFrom<usize> for Arch {
|
||||
@@ -144,6 +145,7 @@ impl TryFrom<usize> for Arch {
|
||||
x if x == Self::SPARC as usize => Ok(Self::SPARC),
|
||||
x if x == Self::M68K as usize => Ok(Self::M68K),
|
||||
x if x == Self::RISCV as usize => Ok(Self::RISCV),
|
||||
x if x == Self::S390X as usize => Ok(Self::S390X),
|
||||
x if x == Self::MAX as usize => Ok(Self::MAX),
|
||||
_ => Err(uc_error::ARCH),
|
||||
}
|
||||
@@ -160,7 +162,8 @@ bitflags! {
|
||||
const THUMB = 0x10;
|
||||
const MCLASS = 0x20;
|
||||
const V8 = 0x40;
|
||||
const ARM926 = 0x80;
|
||||
const ARMBE8 = 0x80;
|
||||
const ARM926 = Self::ARMBE8.bits;
|
||||
const ARM946 = 0x100;
|
||||
const ARM1176 = 0x200;
|
||||
const MICRO = Self::THUMB.bits;
|
||||
|
||||
Reference in New Issue
Block a user