mirror of
https://github.com/fluencelabs/wasmer
synced 2025-06-16 10:21:22 +00:00
Run cargo fmt.
This commit is contained in:
@ -544,11 +544,11 @@ pub unsafe fn get_fault_info(siginfo: *const c_void, ucontext: *mut c_void) -> F
|
|||||||
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
|
#[cfg(all(target_os = "linux", target_arch = "x86_64"))]
|
||||||
/// Get fault info from siginfo and ucontext.
|
/// Get fault info from siginfo and ucontext.
|
||||||
pub unsafe fn get_fault_info(siginfo: *const c_void, ucontext: *mut c_void) -> FaultInfo {
|
pub unsafe fn get_fault_info(siginfo: *const c_void, ucontext: *mut c_void) -> FaultInfo {
|
||||||
|
use crate::state::x64::XMM;
|
||||||
use libc::{
|
use libc::{
|
||||||
_libc_xmmreg, ucontext_t, REG_R10, REG_R11, REG_R12, REG_R13, REG_R14, REG_R15, REG_R8,
|
_libc_xmmreg, ucontext_t, REG_R10, REG_R11, REG_R12, REG_R13, REG_R14, REG_R15, REG_R8,
|
||||||
REG_R9, REG_RAX, REG_RBP, REG_RBX, REG_RCX, REG_RDI, REG_RDX, REG_RIP, REG_RSI, REG_RSP,
|
REG_R9, REG_RAX, REG_RBP, REG_RBX, REG_RCX, REG_RDI, REG_RDX, REG_RIP, REG_RSI, REG_RSP,
|
||||||
};
|
};
|
||||||
use crate::state::x64::XMM;
|
|
||||||
|
|
||||||
fn read_xmm(reg: &_libc_xmmreg) -> u64 {
|
fn read_xmm(reg: &_libc_xmmreg) -> u64 {
|
||||||
(reg.element[0] as u64) | ((reg.element[1] as u64) << 32)
|
(reg.element[0] as u64) | ((reg.element[1] as u64) << 32)
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
//! state could read or updated at runtime. Use cases include generating stack traces, switching
|
//! state could read or updated at runtime. Use cases include generating stack traces, switching
|
||||||
//! generated code from one tier to another, or serializing state of a running instace.
|
//! generated code from one tier to another, or serializing state of a running instace.
|
||||||
|
|
||||||
|
use crate::backend::Backend;
|
||||||
use std::collections::BTreeMap;
|
use std::collections::BTreeMap;
|
||||||
use std::ops::Bound::{Included, Unbounded};
|
use std::ops::Bound::{Included, Unbounded};
|
||||||
use crate::backend::Backend;
|
|
||||||
|
|
||||||
/// An index to a register
|
/// An index to a register
|
||||||
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
|
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash)]
|
||||||
|
Reference in New Issue
Block a user