mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 19:23:56 +00:00
Tests
This commit is contained in:
@@ -207,6 +207,11 @@ impl IcicleEmulator {
|
||||
};
|
||||
|
||||
if !invoke_syscall {
|
||||
if reason == icicle_vm::VmExit::InstructionLimit {
|
||||
break;
|
||||
}
|
||||
|
||||
println!("NO SYSCALL");
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -219,7 +224,7 @@ impl IcicleEmulator {
|
||||
}
|
||||
|
||||
pub fn stop(&mut self) {
|
||||
self.vm.icount_limit = self.vm.cpu.icount + 1;
|
||||
self.vm.icount_limit = self.vm.cpu.icount;
|
||||
}
|
||||
|
||||
pub fn add_execution_hook(&mut self, callback: Box<dyn Fn(u64)>) -> u32 {
|
||||
|
||||
Reference in New Issue
Block a user