Commit graph

1402 commits

Author SHA1 Message Date
Fabian 3a78beeb78 kvm-unit-test: Add missing files 2020-07-21 20:10:11 -05:00
Fabian dbe71128e6 Temporarily disable fxsave test 2020-07-21 20:10:11 -05:00
Fabian befddacccf Fix kvm-unit-test: undefined reference to __stack_chk_fail 2020-07-21 20:10:11 -05:00
Fabian 1b6c1091ce Update kvm-unit-test from upstream 2020-07-21 20:10:11 -05:00
Fabian cda9398da5 Nasm tests: Ensure build folder exists 2020-07-21 20:10:11 -05:00
Fabian 0a8899d3b6 Fix memory view size 2020-07-21 20:10:11 -05:00
Fabian 6e9fb16ac5 Nasm: Separate .o generation in makefile 2020-07-21 20:10:11 -05:00
Fabian 3014f95359 Significantly improve speed of nasm tests
- Reuse v86 instances (in particular, memory allocation and wasm
loading)
- Reduce memory size from default (64M) to 2M
2020-07-21 20:10:11 -05:00
Fabian 4871e5a288 Nasm tests: Create more tests, improve instruction table 2020-07-21 20:10:11 -05:00
Fabian 3cea7aacde Nasm test: Also check final ESP 2020-07-21 20:10:11 -05:00
Fabian 0b0d5394ef Check fixtures before starting to run tests 2020-07-21 20:10:11 -05:00
Fabian db376f3b63 Add tests for fixed address in instructions 2020-07-21 20:10:11 -05:00
Fabian 3079fe8f8d Disable Windows 98 test 2020-07-21 20:10:11 -05:00
Fabian d6ee01dc7a Optimise read_imm8 by not checking for mapped range 2020-07-21 20:10:11 -05:00
Fabian 15899c843b Remove warnings, code is tested 2020-07-21 20:10:11 -05:00
Fabian 08a51f7b0c Add libv86-debug.js target 2020-07-21 20:10:11 -05:00
Fabian 649099851c Host bridge: Mark bios mapped in low memory 2020-07-21 20:10:11 -05:00
Fabian 3cd91a5064 Temporarily disable QEMU tests that don't compiler on newer GCC 2020-07-21 20:10:11 -05:00
Fabian 5ad6e1e67a Nasm tests: Test for lazy flags, fix flags mask for several instructions 2020-07-21 20:10:11 -05:00
Fabian 243a452850 Fix sahf 2020-07-21 20:10:11 -05:00
Fabian c004dac4d5 Generate immediate byte reads for callf/jmpf/enter 2020-07-21 20:10:11 -05:00
Fabian c414ac5c1f Improve enter instructios 2020-07-21 20:10:11 -05:00
Fabian 4332444dfe Use same esp in orace and test 2020-07-21 20:10:11 -05:00
Fabian d6f856207c Protect against call from C 2020-07-21 20:10:11 -05:00
Fabian 7c9cdc75d3 Multiboot loader: Allow bss section, add sanity check against memory size 2020-07-21 20:10:11 -05:00
Fabian 9b463626fe Do side-effects after get_seg 2020-07-21 20:10:11 -05:00
Fabian 9fa0d18ee8 Disable initial state memory optimisation (breaks with wasm) 2020-07-21 20:10:11 -05:00
Fabian 75ae9fe420 Split modrm functions by reg/mem 2020-07-21 20:10:11 -05:00
Fabian c61e668f61 Log esp, even in 16-bit mode 2020-07-21 20:10:11 -05:00
Fabian 5253f810d6 Warn on cr0.am 2020-07-21 20:10:11 -05:00
Fabian 2ad9406d62 Bump LOOP_COUNTER for native execution 2020-07-21 20:10:11 -05:00
Fabian 809fc6638b Fix LSL: segment types considered invalid 2020-07-21 20:10:11 -05:00
Fabian fc0e438348 nasm test: Test with different register than eax 2020-07-21 20:10:11 -05:00
Fabian a29221a6b2 Prepare for catching exceptions in nasm test 2020-07-21 20:10:11 -05:00
Fabian 14875dafb2 Move code into hex_byte 2020-07-21 20:10:11 -05:00
Fabian 0ef4508b22 Add v86.wasm to test targets 2020-07-21 20:10:11 -05:00
Fabian 6d9e8580ef Generate instruction calls when modrm/reg decides instructions 2020-07-21 20:10:11 -05:00
Fabian 425654304a Skip divide instruction tests instead of out-commenting them 2020-07-21 20:10:11 -05:00
Fabian b55c5119c7 Nasm tests: Write to build folder 2020-07-21 20:10:11 -05:00
Fabian 654235ec16 Fix .wasm loading in nodejs 2020-07-21 20:10:11 -05:00
Fabian 95cd31bb49 nasm tests: Test 16-bit instructions 2020-07-21 20:10:11 -05:00
Fabian a1a10d75a8 Fix unaligned stack check during nasm tests 2020-07-21 20:10:11 -05:00
Fabian 6c702c7340 nasm tests: Test both memory and register, skip failing register tests 2020-07-21 20:10:11 -05:00
Fabian 645991b30f Makefile: Use $(MAKE) 2020-07-21 20:10:11 -05:00
Fabian 8ede7ccbed Port MOVQ 2020-07-21 20:10:11 -05:00
Fabian e835729bfa Optimise push16, push32 and pop32s 2020-07-21 20:10:11 -05:00
Fabian 83f7e03090 Fix compilation with latest Closure Compiler 2020-07-21 20:10:11 -05:00
Fabian e995f2b3e5 Fix failing assertion during state restoring 2020-07-21 20:10:11 -05:00
Fabian 5da7185d30 Fix state restoring 2020-07-21 20:10:11 -05:00
Fabian b4bffa6b8a Add missing branch_taken() 2020-07-21 20:10:11 -05:00