Commit graph

3235 commits

Author SHA1 Message Date
Fabian 8646ee00a8 Clean up 2020-12-31 19:14:31 -06:00
Fabian dca4e7bb1e Add qemu release test 2020-12-31 19:14:31 -06:00
Fabian 91b43687e7 Experiment support for synchronous compilation (only node) 2020-12-31 19:14:31 -06:00
Fabian 159aaaa01f Move imm reads into generate_jit 2020-12-31 19:14:31 -06:00
Fabian ab46fe4f37 Refactor modrm decoding for jit 2020-12-31 19:14:31 -06:00
Fabian 9ccef87b88 Port arpl to rust 2020-12-31 19:14:31 -06:00
Fabian a348d2db96 Delete last_virt_esp and esp_phys 2020-12-31 19:14:31 -06:00
Fabian 46cb7eb212 Accept expect tests (order of types changed) 2020-12-31 19:14:31 -06:00
Fabian 44a2838f4b Remove translate_address_read from JS api 2020-12-31 19:14:31 -06:00
Fabian fea30501db Use readable_or_pagefault 2020-12-31 19:14:31 -06:00
Fabian 1c78a09c93 Simplify 2020-12-31 19:14:31 -06:00
Fabian 42ecf896bb Remove remaining uses of reg8 and reg16 2020-12-31 19:14:31 -06:00
Fabian 7d064e1927 Use {read,write}_reg32 2020-12-31 19:14:31 -06:00
Fabian 3b9b5e5717 Use {read,write}_reg8 2020-12-31 19:14:31 -06:00
Fabian 75f223d543 Use {read,write}_reg16 2020-12-31 19:14:31 -06:00
Fabian 31f02905b2 Avoid use cpu2::cpu::* in interpreter 2020-12-31 19:14:31 -06:00
Fabian 98af62a808 Avoid use cpu2::cpu::* in memory 2020-12-31 19:14:31 -06:00
Fabian 0187766059 Avoid use cpu2::cpu::* 2020-12-31 19:14:31 -06:00
Fabian 56f2a0f700 Avoid use foo::* 2020-12-31 19:14:31 -06:00
Fabian a1da780f5e Move some code around 2020-12-31 19:14:31 -06:00
Fabian 9340def411 Move code around 2020-12-31 19:14:31 -06:00
Fabian 959ed86a7f Delete code 2020-12-31 19:14:31 -06:00
Fabian 7b4e1fe07d Delete some code 2020-12-31 19:14:31 -06:00
Fabian 6ff18e0b80 Refactor more 2020-12-31 19:14:31 -06:00
Fabian 0dd6740526 Refactor 2020-12-31 19:14:31 -06:00
Fabian d6c7078c46 Move code around 2020-12-31 19:14:31 -06:00
Fabian 6364c76ded Add message to assertion 2020-12-31 19:14:31 -06:00
Fabian d47f0125ef Update OS tests 2020-12-31 19:14:31 -06:00
Fabian 5251ab11e5 refactor: Move function calling into wasm builder (part 2) 2020-12-31 19:14:31 -06:00
Fabian 37c9ee1021 Refactor 2020-12-31 19:14:31 -06:00
Fabian e9cceb76bc refactor: Move function calling into wasm builder (part 1) 2020-12-31 19:14:31 -06:00
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