Commit graph

3204 commits

Author SHA1 Message Date
Fabian 5dd03792c2 jit RDTSC 2020-12-31 19:14:31 -06:00
Fabian 0091338c6b jit more variants of imul (69/6B) 2020-12-31 19:14:31 -06:00
Fabian 3c41acd89b jit imul32 2020-12-31 19:14:31 -06:00
Fabian 1eb2869900 Improve code generation for cmpxchg 2020-12-31 19:14:31 -06:00
Fabian 737b23c4a6 jit NEG 2020-12-31 19:14:31 -06:00
Fabian 63da907419 jit NOT 2020-12-31 19:14:31 -06:00
Fabian fb69ff29cd Reorder 2020-12-31 19:14:31 -06:00
Fabian 770f90feae Rename load_*_from_stack 2020-12-31 19:14:31 -06:00
Fabian df948fddd6 Use const_i32 2020-12-31 19:14:31 -06:00
Fabian a3dbd9ad5f Rename wasm functions loading from fixed address 2020-12-31 19:14:31 -06:00
Fabian bf661f0829 Add some helper functions 2020-12-31 19:14:31 -06:00
Fabian 0a8953a0fd Reorder 2020-12-31 19:14:31 -06:00
Fabian 2d59a5a082 Refactor 2020-12-31 19:14:31 -06:00
Fabian 9a40122075 Optimise code for div 2020-12-31 19:14:31 -06:00
Fabian dceaa723a2 jit div32 2020-12-31 19:14:31 -06:00
Fabian 5fea295191 lfence doesn't need to be a block boundary 2020-12-31 19:14:31 -06:00
Fabian 8f94cc2716 jit DB/6 FCOMI 2020-12-31 19:14:31 -06:00
Fabian 240c4d0457 loop/loopz/loopnz: Move side-effects into function 2020-12-31 19:14:31 -06:00
Fabian 4b04bd0e97 Add readable_or_pagefault, fix off-by-one in fldenv/frstor 2020-12-31 19:14:31 -06:00
Fabian 116a0d3716 Unwrap if preconditions checked 2020-12-31 19:14:31 -06:00
Fabian 01522f9c5c fpu: Remove side-effects when page fault happens 2020-12-31 19:14:31 -06:00
Fabian 9544a65280 c2rust cleanup 2020-12-31 19:14:31 -06:00
Fabian 6fddce724d Pass alpha:false to canvas.getContext 2020-12-31 19:14:31 -06:00
Fabian b42c7bae30 make all-tests: Move expect-tests to the end 2020-12-31 19:14:31 -06:00
Fabian 6e3bc388b5 Improve jitted version of DF/4 fstsw 2020-12-31 19:14:31 -06:00
Fabian 1da020b3e6 Fix printing of eax in cpuid 2020-12-31 19:14:31 -06:00
Fabian 57b6421fae jit one more mmx instruction 2020-12-31 19:14:31 -06:00
Fabian 7ad30c7148 partially jit bsf/bsr 2020-12-31 19:14:31 -06:00
Fabian 8d39542271 Partially jit popcnt 2020-12-31 19:14:31 -06:00
Fabian 6e6762b293 jit some mmx instructions 2020-12-31 19:14:31 -06:00
Fabian 4860c6f461 jit 0F7E/0F7F mmx movd/movq 2020-12-31 19:14:31 -06:00
Fabian 44974370af jit 0F6E/0F6F mmx movd/movq 2020-12-31 19:14:31 -06:00
Fabian bb529ccfec Add state functions to synchronous buffers 2020-12-31 19:14:31 -06:00
Fabian d746431c93 Fix fast string 2020-12-31 19:14:31 -06:00
Fabian 00cf97fbf6 Fix non-terminating node scripts due to reconnect interval 2020-12-31 19:14:31 -06:00
Fabian a28bad9c50 movs: More precise overlapping check 2020-12-31 19:14:31 -06:00
Fabian 353282a01b movsw/movsd => memcpy 2020-12-31 19:14:31 -06:00
Fabian e359d87276 movsb -> memcpy 2020-12-31 19:14:31 -06:00
Fabian 84979e092d stosb -> memset (with df=1) 2020-12-31 19:14:31 -06:00
Fabian 6eac853886 stosb -> memset 2020-12-31 19:14:31 -06:00
Fabian ed730a68fb Slightly improve fast path of string instructions 2020-12-31 19:14:31 -06:00
Fabian b2636bcf87 Minor 2020-12-31 19:14:31 -06:00
Fabian 5325856849 kvm-unit-test benchmark: Print millicycles 2020-12-31 19:14:31 -06:00
Fabian 4b906c0500 Bump tsc rate to 1Ghz 2020-12-31 19:14:31 -06:00
Fabian 2a52dae27e Only log when actually compiling 2020-12-31 19:14:31 -06:00
Fabian c3cf08bb35 Minor improvements to some fpu instructions 2020-12-31 19:14:31 -06:00
Fabian 97cff0801c Stub MSR_TEST_CTRL and MSR_IA32_FEAT_CTL (Linux 5.7) 2020-12-31 19:14:31 -06:00
Fabian 659729aed1 Disable xterm.js logging 2020-12-31 19:14:31 -06:00
Fabian 4e6d925ee3 Use gen_trigger_ud 2020-12-31 19:14:31 -06:00
Fabian 392128679b Fix rdrand on Node 2020-12-31 19:14:31 -06:00