mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-25 14:41:32 +00:00
Add misaligned atomic access trap display for WasmTrapInfo.
This commit is contained in:
@ -23,6 +23,7 @@ pub enum WasmTrapInfo {
|
|||||||
MemoryOutOfBounds = 2,
|
MemoryOutOfBounds = 2,
|
||||||
CallIndirectOOB = 3,
|
CallIndirectOOB = 3,
|
||||||
IllegalArithmetic = 4,
|
IllegalArithmetic = 4,
|
||||||
|
MisalignedAtomicAccess = 5,
|
||||||
Unknown,
|
Unknown,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ impl fmt::Display for WasmTrapInfo {
|
|||||||
WasmTrapInfo::MemoryOutOfBounds => "memory out-of-bounds access",
|
WasmTrapInfo::MemoryOutOfBounds => "memory out-of-bounds access",
|
||||||
WasmTrapInfo::CallIndirectOOB => "`call_indirect` out-of-bounds",
|
WasmTrapInfo::CallIndirectOOB => "`call_indirect` out-of-bounds",
|
||||||
WasmTrapInfo::IllegalArithmetic => "illegal arithmetic operation",
|
WasmTrapInfo::IllegalArithmetic => "illegal arithmetic operation",
|
||||||
|
WasmTrapInfo::MisalignedAtomicAccess => "misaligned atomic access",
|
||||||
WasmTrapInfo::Unknown => "unknown",
|
WasmTrapInfo::Unknown => "unknown",
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user