Commit Graph

71 Commits

Author SHA1 Message Date
f3323469d0 Format 2024-02-12 00:10:58 +08:00
Dimitris Glynos
9d8e639c69 fix fxsave fpip value, provide tests 2023-10-26 08:42:58 +03:00
6801e156aa Format code 2023-08-06 21:53:42 +08:00
30bc08611b Add a unit test for #1717 2023-08-06 21:53:04 +08:00
mio
aee4038526 Fix test_x86_0xff_lcall test 2023-07-07 18:50:55 +08:00
mio
2325f41ead Add a unit test for a7a5d187e7 2023-06-30 20:28:59 +08:00
Robert Xiao
d7a806c026 Reformat code with format.sh 2023-06-16 15:23:41 -07:00
Takacs, Philipp
073c4b74ca load_helper only call cpu_loop_exit() when emulation is running
The load_helper is sometimes called from register writes. When the load
fails check if emulation is running before jump out of the emulated code.
2023-05-09 14:58:40 +02:00
Takacs, Philipp
e96ac42b2e Remove MMU hacks
Unicorn has included some ugly hacks to provide a envirement where vaddr == paddr.
These hacks where to use the full 64 bit mappings on x86 without init the mmu
and some memory redirect for MIPS.

The UC_TLB_CPU mode defaults to vaddr == paddr, therfor these hacks aren't
required anymore.
2023-03-28 14:02:17 +02:00
Takacs, Philipp
e25419bb2d add virtuall tlb
this virtuall tlb allows to use mmu indipendent of the architectur
2023-03-28 13:50:11 +02:00
Takacs, Philipp
7f1eb4532d add basic mmu tests
Some simple tests for diffrent mmu.
Basicly add some tlb entries, enable the mmu try to read from virtual address

The aarm64 test was provided by imre-kis-arm in #1718
2023-03-28 13:50:11 +02:00
mio
133504b504 Fix wrong IP in x86_16 because of cs_base not substracted 2023-02-20 20:21:56 +01:00
mio
fc193ffe24 Fix missing macros 2022-10-28 17:55:39 +02:00
mio
a40bf26263 Disable test_x86_unaligned_access on be hosts 2022-10-28 17:53:20 +02:00
mio
428ed8fd21 Fix test_x86_unaligned_access for big endian hosts 2022-10-28 17:47:55 +02:00
mio
4b961a8ef6 Apply fix for big endian hosts per #1710 2022-10-28 16:20:20 +02:00
Nguyen Anh Quynh
b99ec09c90 tests: remove unused var 2022-10-12 14:43:01 +08:00
Mio
a0e119c6f0 Format code 2022-08-31 23:27:24 +08:00
mio
bdb141aeef Disable unaligned access test on ppc and aarch64
The memoy read operations on these architectures are inlined

e.g. ldur on aarch64
2022-08-14 15:42:37 +02:00
mio
419d710c4a Return true when we handled the memory events 2022-08-14 13:37:25 +02:00
mio
2c00546c6e Merge rhelmot's fix 2022-08-14 13:35:54 +02:00
Mio
d6d57834b0 Format code 2022-07-23 19:27:37 +08:00
Mio
c7ff9d66cf Move vex.l test to test_x86 2022-07-23 19:26:35 +08:00
ba50035830 Format code 2022-05-23 12:30:44 +02:00
dae48aecee Mem hook should return a bool 2022-05-20 13:31:54 +02:00
0d41d4bbb2 Merge QDucasse:x86_hook_address for tests 2022-05-20 13:07:49 +02:00
Quentin DUCASSE
8ee9e89f01 Fixed code comment for x86 tests 2022-05-04 17:06:48 +02:00
Quentin DUCASSE
a3ed8bbce5 Tests for jump hook address 2022-05-04 16:51:43 +02:00
ed90e98d81 Generate a TB at least to make sure cahce is not cleared for ADD and DEC 2022-04-26 01:18:00 +02:00
d3f1ec1345 Add a test for count hook cache 2022-04-26 01:17:59 +02:00
shuffle2
2912cd1e29 fix rust bindings build on windows (#1584)
Refine rust bindings.
2022-04-16 13:40:04 +02:00
3112cd920e Add a test for nested uc_emu_start exits 2022-03-06 23:51:35 +01:00
d946114dfe Set EFLAGS correctly on startup 2022-02-25 22:44:42 +01:00
186be25c40 Fix wrong mode in tests 2022-02-25 22:28:26 +01:00
45b5d7d8d2 Add test for caf2fe1ddb 2022-02-25 22:24:17 +01:00
mio
2ad9f152f9 Set emulation_done to true if and only if we exit the outer uc_emu_start
Or we may lost uc_emu_stop wrongly
2022-01-19 21:58:46 +01:00
ef6f8a2427 Fix x86 CPUID 2021-12-22 23:39:41 +01:00
7bb756249a Better design of cpuid instruction hook 2021-12-22 20:36:56 +01:00
ccfb66611f Move test to test_mem 2021-11-23 00:41:49 +01:00
Sven Bartscher
b35dbb90b2 Add test case for #1495 2021-11-22 18:48:16 +01:00
247ffbe0e8 Support nested uc_emu_start calls 2021-11-16 21:07:03 +01:00
640251e1aa Leave out size parameter in callback 2021-11-09 00:21:34 +01:00
1a82248292 Add test for #992 2021-11-03 21:17:57 +01:00
9818840f4e Add tests for UC_HOOK_TCG_OPCODE 2021-11-03 20:56:45 +01:00
eb75d459f0 Add a regression test for invalidating empty TB and have a better solution 2021-11-03 01:07:06 +01:00
84abf1d3a4 A stronger test and handle addr_end = 0 2021-10-31 21:01:55 +01:00
4bcf1c4a7c Flush TB at exit with a better approach instead of flushing tlb in uc1 2021-10-31 19:43:56 +01:00
8e6f7e4fba Add a regression test 2021-10-31 15:56:58 +01:00
e62b0ef255 Add clang-format and format code to qemu code style 2021-10-29 12:44:49 +02:00
mio
9d8a309fbf Allow user to instrument cpuid instruction 2021-10-05 17:15:49 +02:00