From 2059e0cccedab9c21e5187168f658deba12008a5 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Thu, 13 Feb 2025 15:54:19 +0200 Subject: feat: Rename tonkolili to vm and bombali to assembler --- vm/src/main.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 vm/src/main.rs (limited to 'vm/src/main.rs') diff --git a/vm/src/main.rs b/vm/src/main.rs new file mode 100644 index 0000000..7b0216d --- /dev/null +++ b/vm/src/main.rs @@ -0,0 +1,21 @@ +use std::sync::Arc; +use std::thread; + +mod vm; +use vm::{ VirtualMachine, VirtualMachineInterface }; +mod vmm; +use vmm::VirtualMachineMonitor; + +fn main() { + let vm = VirtualMachine::create(); + + let _vm_handle = { + let vm = Arc::clone(&vm); + thread::spawn(move || { + vm.start(); + }) + }; + + let mut monitor = VirtualMachineMonitor::new(); + monitor.start(vm); +} -- cgit v1.3.1-26-gb76a