Sven Bartscher
a237505adb
rust: Implement deallocation of MMIO callbacks
...
Previously the user data of MMIO callbacks would live until the end of
the containing Unicorn engine. Now they are deallocated once all
memory referencing those callbacks has been unmapped.
2021-11-24 12:15:20 +01:00
Sven Bartscher
20d97a0c00
Add map_mmio to rust bindings
2021-11-24 12:15:20 +01:00
lazymio
78e0ddbc4d
Fix mmio unmap
2021-11-24 00:18:19 +01:00
lazymio
4ed1c4cff9
Fix test name typo
2021-11-23 23:24:53 +01:00
lazymio
715cabad7a
Merge pull request #1498 from Kritzefitz/splitting-mmio-unmap-test
...
Add test case for #1497
2021-11-23 23:24:00 +01:00
lazymio
cb33fb2570
Format code
2021-11-23 23:23:02 +01:00
lazymio
c733bbada3
Fix wrong offset used in split_region
2021-11-23 23:22:53 +01:00
Sven Bartscher
3e2580ef9e
Add test case for #1497
2021-11-23 22:47:20 +01:00
lazymio
c1c5f72918
Fix the sizemask for inline hooking
2021-11-23 21:18:21 +01:00
lazymio
e11cc16e54
Implement high-resolution clock for mingw64 in test_ctl
2021-11-23 14:15:18 +01:00
lazymio
ccfb66611f
Move test to test_mem
2021-11-23 00:41:49 +01:00
lazymio
7a1de17f37
Fix UC_HOOK_EDGE_GENERATED to work with indirect jump
...
For an indirect jump (lookup_tb_ptr), last_tb would be NULL
2021-11-23 00:25:55 +01:00
lazymio
083ccf160b
Use fprintf
2021-11-22 21:22:21 +01:00
lazymio
3627db5b83
Merge pull request #1496 from Kritzefitz/splitting-unmap-test
...
Add test case for #1495
2021-11-22 18:49:06 +01:00
Sven Bartscher
b35dbb90b2
Add test case for #1495
2021-11-22 18:48:16 +01:00
lazymio
907ec5095d
Fix a stackoverflow in tests
2021-11-21 19:28:45 +01:00
lazymio
87a391d549
Inline uc_tracecode when there is only exactly one hook
2021-11-21 16:44:39 +01:00
lazymio
18d7f090ce
Add gitignore
2021-11-21 12:48:52 +01:00
lazymio
c05fbb7e63
Add a handy example to show how to handle invalid memory read/write
2021-11-16 23:15:38 +01:00
lazymio
c1106b811b
Fix a memory leak in mmio
2021-11-16 22:44:03 +01:00
lazymio
fc467edbc6
Fix 32bit target getting wrong offset for mmio
2021-11-16 22:40:57 +01:00
lazymio
8c2bc394bc
No need to save jmp_buf and uc in contexts
...
This reverts #1335 in fact
2021-11-16 21:18:27 +01:00
lazymio
247ffbe0e8
Support nested uc_emu_start calls
2021-11-16 21:07:03 +01:00
lazymio
43c643d4af
Fix #1488
2021-11-16 09:41:21 +01:00
lazymio
e829d745d4
Merge pull request #1486 from mid-kid/dev
...
Accomodate for setting a different CMAKE_GENERATOR in the environment
2021-11-13 21:33:27 +01:00
mid-kid
2d665aa752
Accomodate for setting a different CMAKE_GENERATOR in the environment.
...
This makes sure the right build utility is called, depending on the
value of the CMAKE_GENERATOR environment.
2021-11-13 13:34:11 +01:00
lazymio
7e244f87b4
Fix UC_HOOK_EDGE_GENERATED implementation
2021-11-11 22:15:15 +01:00
lazymio
fafec703e1
Merge pull request #1480 from domenukk/rust_bindings
...
Rust bindings improvements
2021-11-10 07:52:31 +01:00
lazymio
7f43e1de3e
Rename rust env to decide build dir
2021-11-10 07:51:07 +01:00
lazymio
a43f655727
Merge pull request #1483 from domenukk/no_redownload
...
No redownload in rust bindings
2021-11-10 07:49:31 +01:00
Dominik Maier
67cd9b1c2f
fixed doc tests
2021-11-10 04:49:27 +01:00
Dominik Maier
7adcced19b
cleanup
2021-11-10 04:26:56 +01:00
Dominik Maier
7873e60740
reverted unfinished commit
2021-11-10 04:21:30 +01:00
Dominik Maier
a231440cf8
reverted build.rs
2021-11-10 04:14:56 +01:00
Dominik Maier
177b21c2af
removed need for extra api; no_std
2021-11-10 04:11:14 +01:00
lazymio
23ef5da491
Merge pull request #1481 from bet4it/cp15
...
Restore cp15 registers
2021-11-09 16:50:31 +01:00
Dominik Maier
492779d7d4
fixed context
2021-11-09 16:19:27 +01:00
Dominik Maier
3b0ce89a7a
missing pcs
2021-11-09 16:09:02 +01:00
Dominik Maier
a3e139847d
reapply missing changes
2021-11-09 16:04:59 +01:00
Dominik Maier
1f90734b12
No longer redownloads unicorn each cargo build
2021-11-09 15:51:11 +01:00
Dominik Maier
d7ead41a51
fixed testcases
2021-11-09 14:49:18 +01:00
Bet4
acaed986b5
Restore cp15 registers
2021-11-09 13:13:08 +08:00
lazymio
ec02eccb85
Fixup Rust CI
2021-11-09 00:58:13 +01:00
lazymio
87ece24160
Fixup Rust CI
2021-11-09 00:50:53 +01:00
lazymio
c51bd2c6a6
Fix rust CI
2021-11-09 00:46:47 +01:00
lazymio
0714fb5760
Bump bindings version
2021-11-09 00:23:19 +01:00
lazymio
640251e1aa
Leave out size parameter in callback
2021-11-09 00:21:34 +01:00
lazymio
56fcc07a7c
Add EXTRA field to uc_version
2021-11-08 22:51:49 +01:00
lazymio
35017a614f
Slightly change UC_CTL_TB_REMOVE_CACHE
2021-11-08 22:09:33 +01:00
lazymio
6ec016327d
Rename uc_hook_tcg_sub_t
2021-11-08 21:01:47 +01:00