Commit Graph

2722 Commits

Author SHA1 Message Date
Nguyen Anh Quynh
eb118528b1 rename memory_mapping() to find_memory_region() and simplify mem_map() 2023-02-06 17:59:16 +08:00
Nguyen Anh Quynh
7ca4769f2a bindings: update version to 2.0.2 2023-02-04 13:01:33 +08:00
Nguyen Anh Quynh
6e9c6aea5f bump version to 2.0.2 2023-02-04 13:00:58 +08:00
mio
a25adf84f0 Rename flags to avoid confusion 2023-01-28 22:18:39 +01:00
mio
513e797d46 Update comments of the page count 2023-01-28 22:10:39 +01:00
mio
12a79192ee Demand paging on Windows 2023-01-28 22:04:43 +01:00
7e4754ad00 Merge pull request #1754 from edsky/master
Add arch list feature control in Rust
2023-01-24 21:49:18 +01:00
a07a83ac75 Merge pull request #1767 from PhilippTakacs/rustcallback
rust only add mmio callback funktion, if callback is requested
2023-01-24 21:46:40 +01:00
fb8eee8094 Merge pull request #1765 from PhilippTakacs/split
Do not search for the RAMBlock in split_region
2023-01-24 21:08:04 +01:00
df2e75b65a Merge pull request #1764 from LG3696/fix-memory-leak
Fix Rust binding memory leak
2023-01-24 21:05:42 +01:00
Takacs, Philipp
ed9164e47a rust only add mmio callback funktion, if callback is requested
The C function uc_mmio_map() allows to add seperate callback functions
and userdata for read and write. When the callback functions are NULL
unicorn don't try to call this functions.

Previous this patch, when i.e. read_callback was None the callback was set
to mmio_read_callback_proxy and the userdata was set to NULL. On a callback
the mmio_read_callback_proxy then tried to dereference the userdata and
caused a segfault.

fixes #1762
2023-01-23 13:22:55 +01:00
Luca Gladiator
aded30f5a8 Fix insn_in_hook_proxy return type 2023-01-21 13:50:11 +01:00
Takacs, Philipp
a490ece557 Do not search for the RAMBlock in split_region
The MemoryRegion already contains a pointer to the RAMBlock. So it is
not necesary to search for it.
2023-01-18 16:24:06 +01:00
Luca Gladiator
014cee5bd1 Fix Rust binding memory leak 2023-01-18 10:52:35 +01:00
Dominik Maier
549f34f098 Fix warning for ./setup.py (#1756) 2023-01-06 01:10:09 +08:00
deadash
ca74497911 Add arch list feature control in Rust
Signed-off-by: deadash <dead.ash@hotmail.com>
2022-12-29 15:13:31 +08:00
Nguyen Anh Quynh
1f2da9c717 Merge branch 'dev' of github.com:unicorn-engine/unicorn into dev 2022-12-07 01:36:58 +08:00
Nguyen Anh Quynh
9dc001d686 remove unused code in PPC & dis-asm.h 2022-12-07 01:36:44 +08:00
5625102285 Merge pull request #1736 from ks0777/dev
add riscv constants to python binding module
2022-11-22 14:31:36 +01:00
mio
e9c1c17f6d Fix endianess detection 2022-11-16 15:16:49 +01:00
mio
5f5ef1546c Update CMakeLists versions 2022-11-16 15:01:49 +01:00
mio
6954396ae5 Merge branch 'master' into dev 2022-11-16 15:01:09 +01:00
Kevin Schneider
8edffe048e add riscv constants to python binding module 2022-11-14 19:59:38 +01:00
Nguyen Anh Quynh
a16f4ff911 python: update list of supported archs in setup.py 2022-11-02 00:28:40 +08:00
Nguyen Anh Quynh
241a391cec Merge branch 'dev' 2022-11-01 23:36:54 +08:00
mio
db9ddabf9e Update bindings 2022-11-01 10:06:34 +01:00
mio
bdd9f4fa9a Bump version to 2.0.1 2022-11-01 10:06:22 +01:00
mio
d9c241d5f4 Update FAQ 2022-11-01 10:04:59 +01:00
Nguyen Anh Quynh
3c53a64e30 Merge branch 'dev' 2022-11-01 13:56:59 +08:00
mio
e6da816803 Update changelog 2022-10-31 16:09:06 +01:00
Nguyen Anh Quynh
8ac20e2012 python: add some more comments for samples 2022-10-31 12:37:18 +08:00
Nguyen Anh Quynh
951f155f0a Update SECURITY.md 2022-10-31 12:35:37 +08:00
Nguyen Anh Quynh
896416b350 Update SECURITY.md 2022-10-29 01:32:05 +08: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
563104fa91 IP register is 2 bytes 2022-10-28 17:44:17 +02:00
mio
9c5358c759 Respect QEMU ZMM_Q to work on big endian hosts 2022-10-28 17:37:02 +02:00
mio
3c18ddcc41 Fix PC write for PPC32/64 2022-10-28 16:23:50 +02:00
mio
4b961a8ef6 Apply fix for big endian hosts per #1710 2022-10-28 16:20:20 +02:00
mio
98980c904c Pass the correct size integers 2022-10-28 15:59:14 +02:00
mio
47275c18f4 Fix a test bug 2022-10-28 15:02:59 +02:00
mio
d80cd54b0f Revert test_ctl endian changes 2022-10-27 23:39:43 +02:00
mio
bb7b5bb64a Use macro bswap 2022-10-27 23:32:15 +02:00
mio
e01556557e Fix endianess in test_ctl 2022-10-27 22:52:25 +02:00
mio
fb8fb1ca7a Add headers for endianess 2022-10-27 22:51:56 +02:00
mio
da3999b6f0 Add tests for thumb2 2022-10-21 11:37:07 +02:00
mio
6162708bb2 Hack more to support BE32 2022-10-21 11:30:22 +02:00
c30a712058 Merge pull request #1723 from TSRBerry/update-dotnet
bindings: Refactor and update .NET bindings
2022-10-20 22:01:22 +02:00
mio
3ea7857be3 Exit early when invalid read happens
In this way, the target register won't be overwritten
2022-10-20 21:57:28 +02:00