Commit graph

3148 commits

Author SHA1 Message Date
Fabian f0a85b4d5b Remove npm 2020-12-31 19:14:31 -06:00
Fabian 596ac268b8 Remove calls to dbg_trace from release builds 2020-12-31 19:14:31 -06:00
Fabian 3c15b72f7c Log self-modifying code 2020-12-31 19:14:31 -06:00
Fabian dc9bb5f60c Optimise RMW access 2020-12-31 19:14:31 -06:00
Fabian 9853bdb868 Merge 16-bit and 32-bit 0f tables (saves 200kB on v86.wasm) 2020-12-31 19:14:31 -06:00
Fabian c28e3b8978 Simplify 2020-12-31 19:14:31 -06:00
Fabian 3b5aff7d43 Port far_ret to Rust 2020-12-31 19:14:31 -06:00
Fabian d735d5d34e Port far_jump to Rust 2020-12-31 19:14:31 -06:00
Fabian 3711ed7f23 jit LAHF 2020-12-31 19:14:31 -06:00
Fabian 11dfeb1ee7 Fix minor descrepancy between analyser and jit 2020-12-31 19:14:31 -06:00
Fabian 29e0ef8c4c jit MOVNTI 2020-12-31 19:14:31 -06:00
Fabian cd65ecca9e Optimise safe_write* by using tlb info to skip dirty page check 2020-12-31 19:14:31 -06:00
Fabian 7847d1f539 Refactor SSE instructions, use u64 as default 64-bit type 2020-12-31 19:14:31 -06:00
Fabian 0538767d67 String instructions: Slightly faster version 2020-12-31 19:14:31 -06:00
Fabian 3ae3e6fdf5 Heavily simplify string instructions (and fix 16-bit address size). Slow variant, will be improved in next commits. 2020-12-31 19:14:30 -06:00
Fabian ea2ab370eb Handle conditional jump after STI (w95/w98) 2020-12-31 19:14:30 -06:00
Fabian c5eea8a8d1 Jit POPF 2020-12-31 19:14:30 -06:00
Fabian 03b88668ab Remove some unused #[no_mangle] 2020-12-31 19:14:30 -06:00
Fabian 6298da7d34 Remove indirect function table patching 2020-12-31 19:14:30 -06:00
Fabian 822d1efcff Dead 2020-12-31 19:14:30 -06:00
Fabian 4e49468b7b Fix some minor fpu bugs and add more nasm tests 2020-12-31 19:14:30 -06:00
Fabian 32000594c1 nasmtests: Turn warnings into errors 2020-12-31 19:14:30 -06:00
Fabian fc3bf8583d nasmtests: Print newlines after invalid fpu registers 2020-12-31 19:14:30 -06:00
Fabian 0c97cf9a7c nasmtests: Reduce verbosity 2020-12-31 19:14:30 -06:00
Fabian 2b36795763 Rename only_{reg,mem} to skip_{mem,reg} (only relevant to tests these days) 2020-12-31 19:14:30 -06:00
Fabian 69238b96a7 Update expect tests 2020-12-31 19:14:30 -06:00
Fabian e498b4a1c5 Add expect test for STI 2020-12-31 19:14:30 -06:00
Fabian 073f2d03e9 Expect tests: Remove interactive mode 2020-12-31 19:14:30 -06:00
Fabian d0b04863f6 Accept expect test changes 2020-12-31 19:14:30 -06:00
Fabian 5ca991b929 Add ./tests/expect/run.js --accept-all as a nicer workflow to accept changes 2020-12-31 19:14:30 -06:00
Fabian a26eb43719 Fix: Inhibit interrupts for one instruction after STI (fixes ReactOS) 2020-12-31 19:14:30 -06:00
Fabian 6187fc7cca Use assert over console.assert 2020-12-31 19:14:30 -06:00
Fabian f320de1459 Pending check: Don't remove entry points if wasm compilation is pending 2020-12-31 19:14:30 -06:00
Fabian fc8f180e0a Fix warning 2020-12-31 19:14:30 -06:00
Fabian a172304f8d Add path to wasm module to examples 2020-12-31 19:14:30 -06:00
Fabian 6abb23cb69 Fix fist (store float as 32-bit integer) 2020-12-31 19:14:30 -06:00
Fabian 1c8d11d306 Update comment 2020-12-31 19:14:30 -06:00
Fabian 77dceb6d02 kvm-unit-test: Improve benchmark measuring 2020-12-31 19:14:30 -06:00
Fabian 0edc821618 Jit DIV/IDIV 2020-12-31 19:14:30 -06:00
Fabian 3ef82c8c2f Fix 2020-12-31 19:14:30 -06:00
Fabian 3026e985fa Jit BT 2020-12-31 19:14:30 -06:00
Fabian e1c7b6ff9a Enable BT{,S,C,R} memory tests with immediate 2020-12-31 19:14:30 -06:00
Fabian fc43119406 Optimise returns and indirect jumps/calls into same page 2020-12-31 19:14:30 -06:00
Fabian 693b905013 Remove ENABLE_PROFILER (is configured via cargo.toml) 2020-12-31 19:14:30 -06:00
Fabian ee542c5f84 Optimise lazy flag handling
- remove last_add_result and last_op2 from arithmetic instructions
- optimise getcf
2020-12-31 19:14:30 -06:00
Fabian 27a1f00657 Simplify 2020-12-31 19:14:30 -06:00
Fabian fdaf79eaa9 jit jo, jno, js, jns, jl, jnl, jle, jnle (the remaining arithmetic bits) 2020-12-31 19:14:30 -06:00
Fabian e4b41a8cbe Mark mousewheel event non-passive 2020-12-31 19:14:30 -06:00
Fabian 8f231431fc Simplify 2020-12-31 19:14:30 -06:00
Fabian 88613c3f27 Remove page_fault 2020-12-31 19:14:30 -06:00