diff options
| Commit | 2059e0cccedab9c21e5187168f658deba12008a5 (patch) | |
|---|---|---|
| Author | 2025-02-13 15:54:19 +0200 | |
| Committer | 2025-02-13 15:54:19 +0200 | |
| Files | ad9dc8179ea9752d955b43a3c55f0fd32f70188b /vm/src/main.rs | |
| tonkobali-2059e0cccedab9c21e5187168f658deba12008a5.tar tonkobali-2059e0cccedab9c21e5187168f658deba12008a5.tar.gz tonkobali-2059e0cccedab9c21e5187168f658deba12008a5.zip | ||
| Parent | c455b26e6110393d22f5a0b3e67dd2997126f87b (diff) | |
feat: Rename tonkolili to vm and bombali to assembler
1 files changed, 21 insertions, 0 deletions
| -rw-r--r-- | vm/src/main.rs | 21 |
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); +} |
