Skip to content

Commit ed23690

Browse files
committed
refactor: clean up import statements and comment out unused function
1 parent 17e6688 commit ed23690

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

src/sysreg/cntp_tval_el0.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@ extern crate alloc;
22

33
use aarch64_sysreg::SystemRegType;
44

5-
6-
use axaddrspace::
7-
device::{AccessWidth, DeviceAddrRange, SysRegAddr, SysRegAddrRange}
8-
;
5+
use axaddrspace::device::{AccessWidth, DeviceAddrRange, SysRegAddr, SysRegAddrRange};
96
use axdevice_base::{BaseDeviceOps, EmuDeviceType};
107
use axerrno::AxResult;
118
use axvisor_api::time::{current_time_nanos, register_timer};

src/vcpu.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,10 @@ impl<H: AxVCpuHal> axvcpu::AxArchVCpu for Aarch64VCpu<H> {
121121
self.ctx.set_gpr(idx, val);
122122
}
123123

124-
fn inject_interrupt(&mut self, vector: usize) -> AxResult {
125-
axvisor_api::arch::hardware_inject_virtual_interrupt(vector as u8);
126-
Ok(())
127-
}
124+
// fn inject_interrupt(&mut self, vector: usize) -> AxResult {
125+
// axvisor_api::arch::hardware_inject_virtual_interrupt(vector as u8);
126+
// Ok(())
127+
// }
128128
}
129129

130130
// Private function

0 commit comments

Comments
 (0)