virtual-machine 0.7.4 → 0.7.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{chunk-QS72CGY5.mjs → chunk-QNHY4JET.mjs} +14 -10
- package/build/cli.js +43 -13
- package/build/index.d.ts +9 -5
- package/build/index.js +15 -11
- package/build/index.mjs +3 -3
- package/build/node-worker.js +15 -11
- package/build/{riscv_vm-AH67MG2Z.mjs → riscv_vm-3VZO5RQ3.mjs} +1 -1
- package/build/worker.js +10 -10
- package/native/riscv-vm-native.darwin-arm64.node +0 -0
- package/native/riscv-vm-native.darwin-x64.node +0 -0
- package/native/riscv-vm-native.linux-arm64-gnu.node +0 -0
- package/native/riscv-vm-native.linux-arm64-musl.node +0 -0
- package/native/riscv-vm-native.linux-x64-gnu.node +0 -0
- package/native/riscv-vm-native.linux-x64-musl.node +0 -0
- package/native/riscv-vm-native.win32-x64-msvc.node +0 -0
- package/package.json +1 -1
|
@@ -220,14 +220,14 @@ var WASM_VECTOR_LEN = 0;
|
|
|
220
220
|
function wasm_bindgen__convert__closures_____invoke__h10fd13f77519f00f(arg0, arg1, arg2) {
|
|
221
221
|
wasm.wasm_bindgen__convert__closures_____invoke__h10fd13f77519f00f(arg0, arg1, arg2);
|
|
222
222
|
}
|
|
223
|
-
function
|
|
224
|
-
wasm.
|
|
223
|
+
function wasm_bindgen__convert__closures_____invoke__h3c19a701e2fb4946(arg0, arg1, arg2) {
|
|
224
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h3c19a701e2fb4946(arg0, arg1, arg2);
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
wasm.
|
|
226
|
+
function wasm_bindgen__convert__closures_____invoke__h6ce8d92453d66e1b(arg0, arg1) {
|
|
227
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6ce8d92453d66e1b(arg0, arg1);
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
wasm.
|
|
229
|
+
function wasm_bindgen__convert__closures_____invoke__h1f45221b43ca80d0(arg0, arg1) {
|
|
230
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h1f45221b43ca80d0(arg0, arg1);
|
|
231
231
|
}
|
|
232
232
|
var __wbindgen_enum_WorkerType = ["classic", "module"];
|
|
233
233
|
var WasmVmFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
@@ -859,7 +859,11 @@ var WasmVm = class _WasmVm {
|
|
|
859
859
|
}
|
|
860
860
|
/**
|
|
861
861
|
* Push an input byte to the UART.
|
|
862
|
-
*
|
|
862
|
+
*
|
|
863
|
+
* In SMP mode there is a single shared input ring consumed by whichever
|
|
864
|
+
* hart runs the shell (the bus routes RBR/LSR reads of every hart,
|
|
865
|
+
* including hart 0, to the ring). Pushing to the local FIFO as well
|
|
866
|
+
* would duplicate the stream and leave stale bytes behind.
|
|
863
867
|
* @param {number} byte
|
|
864
868
|
*/
|
|
865
869
|
input(byte) {
|
|
@@ -1585,11 +1589,11 @@ function __wbg_get_imports() {
|
|
|
1585
1589
|
return ret;
|
|
1586
1590
|
};
|
|
1587
1591
|
imports.wbg.__wbindgen_cast_37ec172324e9c759 = function(arg0, arg1) {
|
|
1588
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1592
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1e8cf243a981f4cd, wasm_bindgen__convert__closures_____invoke__h1f45221b43ca80d0);
|
|
1589
1593
|
return ret;
|
|
1590
1594
|
};
|
|
1591
1595
|
imports.wbg.__wbindgen_cast_5d29676ef6c3e85f = function(arg0, arg1) {
|
|
1592
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1596
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1e8cf243a981f4cd, wasm_bindgen__convert__closures_____invoke__h3c19a701e2fb4946);
|
|
1593
1597
|
return ret;
|
|
1594
1598
|
};
|
|
1595
1599
|
imports.wbg.__wbindgen_cast_5f9a13552260be22 = function(arg0, arg1) {
|
|
@@ -1597,7 +1601,7 @@ function __wbg_get_imports() {
|
|
|
1597
1601
|
return ret;
|
|
1598
1602
|
};
|
|
1599
1603
|
imports.wbg.__wbindgen_cast_c6620a1285ea2988 = function(arg0, arg1) {
|
|
1600
|
-
const ret = makeClosure(arg0, arg1, wasm.
|
|
1604
|
+
const ret = makeClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1e8cf243a981f4cd, wasm_bindgen__convert__closures_____invoke__h6ce8d92453d66e1b);
|
|
1601
1605
|
return ret;
|
|
1602
1606
|
};
|
|
1603
1607
|
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|