Browse Source

feat: v86 9p server support

ProgrammerIn-wonderland 7 months ago
parent
commit
b145e30a90
3 changed files with 8 additions and 2 deletions
  1. 5 0
      rust-toolchain.toml
  2. 2 1
      src/emulator/src/main.js
  3. 1 1
      submodules/v86

+ 5 - 0
rust-toolchain.toml

@@ -0,0 +1,5 @@
+[toolchain]
+channel = "nightly"
+components = [ "rustc", "rust-std" ]
+targets = [ "wasm32-unknown-unknown", "i686-unknown-linux-gnu" ]
+profile = "minimal"

+ 2 - 1
src/emulator/src/main.js

@@ -287,10 +287,11 @@ window.onload = async function()
         status.phase_progress = UPDATE_ONLY;
     }, 200);
         
-
+    console.log("starting v86")
     var emulator = window.emulator = new V86({
         wasm_path: PATH_V86 + "/v86.wasm",
         memory_size: 512 * 1024 * 1024,
+        filesystem: { fs: puter.fs },
         vga_memory_size: 2 * 1024 * 1024,
         screen_container: document.getElementById("screen_container"),
         bios: {

+ 1 - 1
submodules/v86

@@ -1 +1 @@
-Subproject commit 1afc297f8b61704716c6eb9bfb281d57036bd588
+Subproject commit e4da3306727b59de0879fa111e8b6e963bcc0c82