Skip to content

Commit aa0347e

Browse files
committed
fix: 移除未使用的 bind 和 unbind 方法以清理代码
1 parent ad5d5db commit aa0347e

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/vcpu.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -119,36 +119,19 @@ impl Aarch64VCpu {
119119
self.vmexit_handler(trap_kind)
120120
}
121121

122-
pub fn bind(&mut self) -> AxResult {
123-
Ok(())
124-
}
125-
126-
pub fn unbind(&mut self) -> AxResult {
127-
Ok(())
128-
}
129-
130122
pub fn set_gpr(&mut self, idx: usize, val: usize) {
131123
self.ctx.set_gpr(idx, val);
132124
}
133125

134126
pub fn inject_interrupt(&mut self, vector: usize) -> AxResult {
135127
inject_interrupt(vector);
136-
// axvisor_api::arch::hardware_inject_virtual_interrupt(vector as u8);
137128
Ok(())
138129
}
139130

140131
pub fn set_return_value(&mut self, val: usize) {
141132
// Return value is stored in x0.
142133
self.ctx.set_argument(val);
143134
}
144-
145-
pub fn ctx(&self) -> &TrapFrame {
146-
&self.ctx
147-
}
148-
149-
pub fn ctx_mut(&mut self) -> &mut TrapFrame {
150-
&mut self.ctx
151-
}
152135
}
153136

154137
// Private function

0 commit comments

Comments
 (0)