diff options
| Commit | 2653f4e53f9e878b8c4d09088fd79b4e22a48865 (patch) | |
|---|---|---|
| Author | 2025-02-14 16:06:45 +0200 | |
| Committer | 2025-02-14 16:06:45 +0200 | |
| Files | a82289da31eb8eed58d0383eb9495416f7cd9180 /vm/src/vmm/mod.rs | |
| tonkobali-2653f4e53f9e878b8c4d09088fd79b4e22a48865.tar tonkobali-2653f4e53f9e878b8c4d09088fd79b4e22a48865.tar.gz tonkobali-2653f4e53f9e878b8c4d09088fd79b4e22a48865.zip | ||
| Parent | c8955f48580db8067765f76c8967e44dbb06517a (diff) | |
feat(vm): Add ability to store data in memory and to start execution after halt
1 files changed, 1 insertions, 2 deletions
| -rw-r--r-- | vm/src/vmm/mod.rs | 3 |
diff --git a/vm/src/vmm/mod.rs b/vm/src/vmm/mod.rs index afd8840..9ad250f 100644 --- a/vm/src/vmm/mod.rs +++ b/vm/src/vmm/mod.rs @@ -4,7 +4,7 @@ use std::{ thread, time, sync::mpsc, io::{ stdout, stdin, Write } }; use command::parse_and_exec; -use super::vm::VirtualMachine; +use super::vm::{ VirtualMachine, VirtualMachineInterface }; pub(crate) struct VirtualMachineMonitor { refresh_rate: u64, @@ -50,7 +50,6 @@ impl VirtualMachineMonitor { } { - let vm = (*vm).lock().unwrap(); if vm.is_halted() { print!(above!("HALTED!")); } |
