From 2653f4e53f9e878b8c4d09088fd79b4e22a48865 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Fri, 14 Feb 2025 16:06:45 +0200 Subject: feat(vm): Add ability to store data in memory and to start execution after halt --- vm/src/vmm/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'vm/src/vmm/mod.rs') 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!")); } -- cgit v1.3.1-26-gb76a