Commit Graph

2963 Commits

Author SHA1 Message Date
Alexander von Gluck IV
d504e3a004 build: Fixes for Haiku
* Haiku is fully posix, so can be lumped together with most unix cases
2023-03-22 13:58:10 -05:00
d9dcfc1264 Merge pull request #1806 from tunz/tunz/cache
Cache index for find_memory_region
2023-03-21 19:20:50 +08:00
Choongwoo Han
0a38a0bf17 Fix test failure 2023-03-20 18:41:59 -07:00
Choongwoo Han
8f2841ecdb Cache index for find_memory_region 2023-03-20 17:07:15 -07:00
a0ff413830 Merge pull request #1800 from PhilippTakacs/emu_stop
difference between stop_request and quit_request
2023-03-12 20:28:29 +01:00
mio
11fcbad9ff Remove redundant printf 2023-03-12 20:28:01 +01:00
f442203628 Merge pull request #1802 from tunz/tunz/hook-del
[dotnet] Use native binding calls whenever possible
2023-03-12 20:03:46 +01:00
fb78016127 Merge pull request #1794 from tunz/tunz/dotnet-nuget
[dotnet] Add /MT flag for nuget package build
2023-03-12 20:02:10 +01:00
Choongwoo Han
b4b6caf57c [dotnet] Support HookDel with native bindings call 2023-03-11 08:51:01 -08:00
Takacs, Philipp
b7b1a4d6b4 difference between stop_request and quit_request
quit_request is for internal use. This means the IP register was updated and
qemu needs to rebuild the translation blocks.

stop_request is set by the user (uc_emu_stop) to indecate that unicorn sould
stop emulating.
2023-03-07 14:38:49 +01:00
ca7e0e7f42 Merge pull request #1795 from rhelmot/dev
Use libunicorn.so.2 as fallback path
2023-03-02 20:15:52 +01:00
Audrey Dutcher
cef7d7d0fb Use libunicorn.so.2 as fallback path 2023-03-02 19:14:25 -07:00
f7c841db84 Merge pull request #1793 from tunz/tunz/dotnet-fixes
[dotnet] Fix garbage collected hooks and wrong signature
2023-03-01 17:41:19 +01:00
Choongwoo Han
545c9ed24e [dotnet] Add /MT flag for nuget package build 2023-02-28 20:25:19 -08:00
Choongwoo Han
03a793e934 [dotnet] Fix garbage collected hooks and wrong signature 2023-02-28 19:35:38 -08:00
c75f3743d4 Merge pull request #1790 from tunz/tunz/dotnet-binding-hook
[dotnet] Set begin > end address for hooks
2023-02-27 20:20:46 +01:00
04d020449a Merge pull request #1791 from PhilippTakacs/cpuid
[x86] don't hardcode cpuid results
2023-02-27 20:19:33 +01:00
Takacs, Philipp
14404ef04b [x86] don't hardcode cpuid results
The cpuid results are set by the selected cpu.

CLOSES #1787
2023-02-27 12:34:38 +01:00
Choongwoo Han
b961ebc9cb [dotnet] Set begin > end address for hooks 2023-02-26 08:41:01 -08:00
mio
a91319908d Remove obsolete Brewfile 2023-02-20 20:57:50 +01:00
mio
8a6f4e54c2 Install pkg-config for other workflows 2023-02-20 20:53:52 +01:00
mio
2d5d72e6c7 Install deps for macos 2023-02-20 20:51:37 +01:00
mio
5e5075b4b9 Install pkg-config on macos runners 2023-02-20 20:27:31 +01:00
mio
133504b504 Fix wrong IP in x86_16 because of cs_base not substracted 2023-02-20 20:21:56 +01:00
7b8c63dfe6 Exclude enhancement and bug issues 2023-02-07 10:44:36 +01:00
mio
9c9356da6c Bump to 2.0.2-rc1 for csharp 2023-02-07 10:40:30 +01:00
mio
3af2775039 Merge branch 'cs_dev' into dev 2023-02-07 10:08:09 +01:00
mio
3199dd88de Detect AVX2 correctly for MSVC 2023-02-07 01:07:53 +01:00
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
TSR Berry
cee8e6b5da gha: Add steps to upload nupkg as artifact & publish to Nuget 2023-01-29 00:47:46 +01: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
TSRBerry
81baee2b1c gha: Fix master branch check 2022-12-15 17:24:53 +01: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
mio
56f3bdedb4 Update ChangeLog 2022-11-22 21:55:02 +01:00
TSR Berry
dfea3f9e45 nuget: Build native libraries in jobs 2022-11-22 19:12:52 +01:00