Commit Graph

1531 Commits

Author SHA1 Message Date
Elton G
47150b6df3 reg_read and reg_write now work with registers W0 through W30 in Aarch64 (#716)
* reg_read and reg_write now work with registers W0 through W30 in Aarch64 emulaton

* Added a regress test for the ARM64 reg_read and reg_write on 32-bit registers (W0-W30)
Added a new macro in uc_priv.h (WRITE_DWORD_TO_QWORD), in order to write to the lower 32 bits of a 64 bit value without overwriting the whole value when using reg_write

* Fixed WRITE_DWORD macro

reg_write would zero out the high order bits when writing to 32 bit registers

e.g. uc.reg_write(UC_X86_REG_EAX, 0) would also set register RAX to zero
2017-01-15 20:13:35 +08:00
Nguyen Anh Quynh
55f0292aa9 Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2017-01-13 20:13:31 +08:00
Nguyen Anh Quynh
353dc99af6 regress: fix arm_fp_vfp_disabled.py 2017-01-13 20:13:20 +08:00
danghvu
3095e5c510 Merge pull request #713 from hedger/master
Fixed circular refs preventing Uc instances from being GC'd
2017-01-12 09:42:33 -06:00
hedger
d2b7d13443 Fixed circular refs preventing Uc instances from being GC'd. Added a test case, requires objgraph module. 2017-01-11 18:23:21 +03:00
Nguyen Anh Quynh
6378db99dc Merge pull request #712 from lunixbochs/go-free-regions
go: fix uc_free, free uc_mem_regions pointer
2017-01-11 09:27:45 +08:00
Chris Eagle
8adc8afc63 Java bindings (#711)
* Remove glib from samples makefile

* support new APIs

* reimplement register batch mode interface

* stop using deprecated java API
2017-01-11 09:27:16 +08:00
Ryan Hileman
ab3828222a go: fix uc_free, free uc_mem_regions pointer 2017-01-10 16:54:54 -05:00
Nguyen Anh Quynh
bc569f5a54 rename API uc_mem_free() to uc_free(). see #662 2017-01-10 20:59:14 +08:00
Nguyen Anh Quynh
7512ff57de more cleanup 2017-01-10 16:29:47 +08:00
Nguyen Anh Quynh
c1f39c3db2 cleanup qemu/util code 2017-01-10 12:57:12 +08:00
Nguyen Anh Quynh
fdbbdc6216 rename uc_context_free() to uc_mem_free(). see #373 2017-01-09 20:52:14 +08:00
Nguyen Anh Quynh
af165d254c clean all qobject json code 2017-01-09 16:09:53 +08:00
Nguyen Anh Quynh
16894fdb6c cleanup some qemu/util code 2017-01-09 15:48:21 +08:00
Nguyen Anh Quynh
52cb0ba78e cleanup more synchronization code 2017-01-09 14:05:39 +08:00
Nguyen Anh Quynh
d7ead1135d cleanup 2017-01-09 13:28:28 +08:00
Nguyen Anh Quynh
ffa97dc2a1 cleanup qemu/configure 2017-01-08 01:35:19 +08:00
Chris Eagle
21ffaf7d10 Java bindings (#709)
* Remove glib from samples makefile

* support new APIs

* reimplement register batch mode interface

* stop using deprecated java API
2017-01-06 23:56:53 +08:00
Nguyen Anh Quynh
d00f773e8e Merge pull request #706 from angr/fix/static_library_copying_nitpicks
Static library copying nitpicks
2017-01-05 12:41:51 +08:00
Nguyen Anh Quynh
548cc320c0 Merge pull request #707 from agustingianni/master
Allow the client to write to CPSR
2017-01-05 11:35:32 +08:00
Agustin Gianni
a63a34bfbc Allow the client to write to CPSR 2017-01-05 00:00:15 +01:00
Andrew Dutcher
7bd4d62dcb Copy prebuilt static library if available. Disallow uploads from builds that fail to provide the static library 2017-01-04 06:45:18 -08:00
Nguyen Anh Quynh
37bf1a9de9 Merge pull request #705 from angr/fix/python_versioning
Python: Automatically conform to PEP440 for version numbers
2017-01-04 22:17:13 +08:00
Andrew Dutcher
5d8934f5a9 Python: Automatically conform to PEP440 for version numbers 2017-01-04 05:51:55 -08:00
Nguyen Anh Quynh
c2d57c6806 update ChangeLog for 1.0-rc2 2017-01-04 20:07:50 +08:00
Nguyen Anh Quynh
a963326dba Merge pull request #703 from angr/fix/staticlib_export
Make the call out to visual studio extremely resilient
2017-01-02 11:58:34 +08:00
Andrew Dutcher
3d760071b8 Make the call out to visual studio extremely resilient 2017-01-02 03:32:48 -08:00
Nguyen Anh Quynh
2e8fa1dbf6 glib_compat: add guint64 type 2017-01-02 01:24:54 +08:00
Nguyen Anh Quynh
3fa50fc06a macro GPOINTER_TO_UINT 2017-01-02 01:00:11 +08:00
Nguyen Anh Quynh
07aa027167 msvc docs: no longer need libglib. add libpcre as dependency 2017-01-01 23:41:15 +08:00
Stephen
000302d257 cleanup travis by removing universal builds (#702)
only used for universal glib
2016-12-30 00:09:08 +08:00
Nguyen Anh Quynh
88fa2f5d4c Merge branch 'master' into noglib2 2016-12-28 13:49:21 +08:00
Nguyen Anh Quynh
0aea7f8602 Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2016-12-28 13:49:04 +08:00
danghvu
a97f908281 Revert "translate-all.c: make code_bitmap 64-bit, fix issue #646"
This reverts commit 1a222e8904.
This issue shall be fixed when sync with upstream.
2016-12-27 23:28:47 -06:00
danghvu
1a222e8904 translate-all.c: make code_bitmap 64-bit, fix issue #646 2016-12-27 22:23:06 -06:00
Nguyen Anh Quynh
d5f513cbfe Merge branch 'master' into noglib2 2016-12-27 22:49:59 +08:00
cojocar
428cb83060 Support for MCLASS ARM cpu (Cortex-M3) (#700)
Support for Cortex-M ARM CPU already exists in Qemu. This patch just
exposes a "cortex-m3" CPU.

"uc_open(UC_ARCH_ARM, UC_MODE_THUMB | UC_MODE_MCLASS, &uc);"
Instantiates a CPU with this feature on.

Signed-off-by: Lucian Cojocar <lucian@cojocar.com>
2016-12-27 22:49:06 +08:00
Nguyen Anh Quynh
efe6efeb84 Capitalize 2016-12-27 20:38:30 +08:00
Nguyen Anh Quynh
9a79d6fe9f Merge branch 'master' into noglib2 2016-12-27 16:48:23 +08:00
Nguyen Anh Quynh
f56bfe1f95 Merge branch 'master' of https://github.com/unicorn-engine/unicorn 2016-12-27 16:48:10 +08:00
Andrew Dutcher
bf2cd79a4d Windows: export a static lib that can be used outside of mingw (#699)
* Windows: export a static lib that can be used outside of mingw

* Add comments to windows_export.bat
2016-12-27 16:30:07 +08:00
Nguyen Anh Quynh
3fb078c555 glib_compat: add COPYING_GLIB 2016-12-27 10:15:08 +08:00
Nguyen Anh Quynh
9b809601ec glib_compat: code style 2016-12-27 00:13:27 +08:00
Nguyen Anh Quynh
520f335a2a glib_compat: lift string functions from glib. remove unused API g_win32_error_message() 2016-12-26 22:36:47 +08:00
Nguyen Anh Quynh
c5b8fbfbc6 glib_compat: FALSE = 0 2016-12-26 22:02:34 +08:00
Nguyen Anh Quynh
e4382c0467 glib_compat: lift hash functions from glib 2016-12-26 20:12:01 +08:00
Nguyen Anh Quynh
fba6046fd0 glib_compat: lift g_list_sort() & g_slist_sort() from glib code 2016-12-26 18:32:02 +08:00
Nguyen Anh Quynh
b05087d314 merge conflicts 2016-12-26 18:16:04 +08:00
Nguyen Anh Quynh
cb40e6a3f5 glib_compat: some minor fixes 2016-12-26 18:13:46 +08:00
Nguyen Anh Quynh
55e61f65e4 python: only preload librt.so on Linux 2016-12-26 15:54:46 +08:00