From d81da420076ca4c59def26176a8942c275507020 Mon Sep 17 00:00:00 2001 From: Evan Reichard Date: Fri, 24 Jul 2026 10:37:12 -0400 Subject: [PATCH] wasm-emu: keep only aliased qemu_ld fallback --- third_party/qemu | 2 +- web/app.js | 29 +---------------------------- 2 files changed, 2 insertions(+), 29 deletions(-) diff --git a/third_party/qemu b/third_party/qemu index c1fc905..598b5e6 160000 --- a/third_party/qemu +++ b/third_party/qemu @@ -1 +1 @@ -Subproject commit c1fc905cf2822d2c8273bbf5eb74991979e902aa +Subproject commit 598b5e66fd3a6a38d9bf809a4b9620e21cb8b2d2 diff --git a/web/app.js b/web/app.js index db2bf57..f931aeb 100644 --- a/web/app.js +++ b/web/app.js @@ -463,7 +463,7 @@ async function boot(file, variant, setStatus) { const { default: createQemu } = await import(qemuUrl); const params = new URL(location.href).searchParams; - const qemuLogFlags = [params.has('trace') ? 'guest_errors,unimp,in_asm' : 'guest_errors,unimp', params.has('nochain') ? 'nochain' : ''].filter(Boolean).join(','); + const qemuLogFlags = params.has('trace') ? 'guest_errors,unimp,in_asm' : 'guest_errors,unimp'; // icount throttles TCG ~4.7x here and starves the guest watchdog; off by default. ?icount restores it. const icount = params.has('icount') ? ['-icount', 'shift=auto,align=off,sleep=off'] : []; const options = { @@ -488,33 +488,6 @@ async function boot(file, variant, setStatus) { stdin: () => null, }; options.preRun = [() => { - if (params.get('tcgdiff2') === 'open') { - window.xteinkArmTcgDiff2 = () => options._wasm_diff_enable2(); - } else if (params.has('tcgdiff2')) options._wasm_diff_enable2(); - else if (params.has('tcgdiff')) options._wasm_diff_enable(); - if (params.has('nostoretci')) options._wasm_disable_store_tci(); - if (params.has('yieldtrace')) options._wasm_enable_yield_trace(); - if (params.has('noremove')) options._wasm_set_disable_tb_removal(); - if (params.get('ramrace') === 'open') { - window.xteinkEnableRamrace = () => options._wasm_enable_ramrace_trace(); - } else if (params.has('ramrace')) options._wasm_enable_ramrace_trace(); - if (params.get('stateflush') === 'open') { - window.xteinkEnableStateflush = () => options._wasm_stateflush_enable(); - } else if (params.has('stateflush')) options._wasm_stateflush_enable(); - if (params.get('tlbguard') === 'open') { - window.xteinkEnableTlbguard = () => options._wasm_tlb_guard_enable(); - } else if (params.has('tlbguard')) options._wasm_tlb_guard_enable(); - if (params.has('storehelpertci')) options._wasm_set_store_helper_tci(); - if (params.has('sthash')) options._wasm_set_store_tci_hash(Number(params.get('sthash')) || 1); - if (params.has('stcmask')) options._wasm_set_store_bisect(Number(params.get('stcw')) || 0, Number(params.get('stcmask')) >>> 0, (Number(params.get('stcval')) || 0) >>> 0); - if (params.has('stpc')) { - const [lo, hi] = params.get('stpc').split('-').map(v => Number(v)); - options._wasm_set_store_pc_window(lo >>> 0, hi >>> 0); - } - if (params.has('dumpstpc')) { - const [lo, hi] = params.get('dumpstpc').split('-').map(v => Number(v)); - options._wasm_set_dump_pc_window(lo >>> 0, hi >>> 0); - } options.FS.mkdirTree('/bios'); options.FS.mkdirTree('/var/tmp'); options.FS.writeFile('/bios/esp32c3-rom.bin', rom);