Skip to content

Commit f6008e3

Browse files
committed
简化对 aarch64_cpu::registers 的导入
1 parent a600035 commit f6008e3

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

src/exception.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use aarch64_cpu::registers::{ESR_EL2, HCR_EL2, Readable, SCTLR_EL1, VTCR_EL2, VTTBR_EL2};
1+
use aarch64_cpu::registers::*;
22

33
use axaddrspace::GuestPhysAddr;
44
use axaddrspace::device::AccessWidth;

src/exception_utils.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
use aarch64_cpu::registers::{ESR_EL2, FAR_EL2, PAR_EL1};
2-
use tock_registers::interfaces::*;
1+
use aarch64_cpu::registers::*;
32

43
use axaddrspace::GuestPhysAddr;
54
use axerrno::{AxResult, ax_err};

src/pcpu.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use core::{cell::OnceCell, marker::PhantomData};
22

33
use aarch64_cpu::registers::*;
4-
use tock_registers::interfaces::ReadWriteable;
54

65
use axerrno::AxResult;
76
use axvcpu::{AxArchPerCpu, AxVCpuHal};

src/vcpu.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
use core::marker::PhantomData;
22

3-
use aarch64_cpu::registers::{CNTHCTL_EL2, HCR_EL2, SP_EL0, SPSR_EL1, VTCR_EL2};
4-
use tock_registers::interfaces::{ReadWriteable, Readable, Writeable};
3+
use aarch64_cpu::registers::*;
54

65
use axaddrspace::{GuestPhysAddr, HostPhysAddr};
76
use axerrno::AxResult;

0 commit comments

Comments
 (0)