mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
build: treewide: fmt for edition 2024
`cargo +nightly fmt` Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Bo Chen
parent
061351d82d
commit
363273111a
@@ -7,8 +7,8 @@
|
||||
use iced_x86::*;
|
||||
|
||||
use crate::arch::emulator::{EmulationError, PlatformEmulator, PlatformError};
|
||||
use crate::arch::x86::emulator::CpuStateManager;
|
||||
use crate::arch::x86::Exception;
|
||||
use crate::arch::x86::emulator::CpuStateManager;
|
||||
|
||||
pub mod cmp;
|
||||
pub mod mov;
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
use anyhow::Context;
|
||||
use iced_x86::*;
|
||||
|
||||
use crate::StandardRegisters;
|
||||
use crate::arch::emulator::{EmulationError, EmulationResult, PlatformEmulator, PlatformError};
|
||||
use crate::arch::x86::emulator::instructions::*;
|
||||
use crate::arch::x86::regs::{CR0_PE, EFER_LMA};
|
||||
use crate::arch::x86::{
|
||||
segment_type_expand_down, segment_type_ro, Exception, SegmentRegister, SpecialRegisters,
|
||||
Exception, SegmentRegister, SpecialRegisters, segment_type_expand_down, segment_type_ro,
|
||||
};
|
||||
use crate::StandardRegisters;
|
||||
|
||||
#[macro_use]
|
||||
mod instructions;
|
||||
@@ -254,7 +254,7 @@ impl CpuStateManager for EmulatorCpuState {
|
||||
return Err(PlatformError::InvalidRegister(anyhow!(
|
||||
"read_reg invalid GPR {:?}",
|
||||
r
|
||||
)))
|
||||
)));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -375,7 +375,7 @@ impl CpuStateManager for EmulatorCpuState {
|
||||
return Err(PlatformError::InvalidRegister(anyhow!(
|
||||
"write_reg invalid register {:?}",
|
||||
reg
|
||||
)))
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -660,9 +660,9 @@ mod mock_vmm {
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
||||
use super::*;
|
||||
use crate::StandardRegisters;
|
||||
use crate::arch::x86::emulator::EmulatorCpuState as CpuState;
|
||||
use crate::arch::x86::gdt::{gdt_entry, segment_from_gdt};
|
||||
use crate::StandardRegisters;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct MockVmm {
|
||||
|
||||
Reference in New Issue
Block a user