Commit Graph

426 Commits

Author SHA1 Message Date
6478a24404 Merge branch 'gdt_idt' of https://github.com/cseagle/unicorn into cseagle-gdt_idt 2016-02-06 17:31:42 +08:00
e73cbf1c88 arm: UC_QUERY_MODE return hardware mode (see issue #397) 2016-02-06 09:47:57 +08:00
dec3615d12 ldtr and tr limit is 20 bits, not 16 bits 2016-02-04 19:26:47 -08:00
b49358524f fix reg_read casting for x86 segment registers 2016-02-04 19:22:39 -08:00
4cb43be5bf fix reg_read casting for x86 segment registers 2016-02-04 19:20:59 -08:00
49b9f4f8da uc_x86_mmr type available in qemu/target-i386/unicorn.c 2016-02-04 19:09:41 -08:00
c339ced218 file perms 2016-02-04 17:18:24 -08:00
f3dc2522a0 read/write of x86 segment registers should modify selector field not base field 2016-02-04 17:17:40 -08:00
59f7bf3be7 file perms 2016-02-04 16:48:27 -08:00
e59382e030 updated gdtr/idtr/ldtr/tr read/write code 2016-02-04 16:44:52 -08:00
9977054a15 add support for setting gdtr, idtr, ldtr, and tr programatically 2016-02-03 09:22:29 -08:00
20b01a6933 fix merge conflict 2016-02-01 12:08:38 +08:00
cfaac6921b c89 2016-02-01 12:05:46 +08:00
36e53ad8a1 Fix arm & arm64 memleaks 2016-01-31 16:22:20 -06:00
c8569d8128 arm: fix change PC feature. now tests/regress/callback-pc.py passes 2016-01-28 16:03:19 +08:00
5a04bcb115 allow to change PC during callback. this solves issue #210 2016-01-28 14:06:17 +08:00
e750a4e97c when uc_mem_exec() remove EXE permission, quit current TB & continue emulating with TB flushed. this fixes issue in PR #378 2016-01-28 00:56:55 +08:00
48ab148d1c Merge branch 'hook' 2016-01-26 22:52:29 +08:00
2341f5dd1a code style 2016-01-26 17:37:48 +08:00
a640b76b94 qemu-thread-posix: bail on mutex errors
partially addresses #400
2016-01-24 22:46:13 -05:00
6f3d48077e rename UC_QUERY_ARM_MODE to a more generic name UC_QUERY_MODE. make all bindings support this new constant 2016-01-24 01:08:23 +08:00
4dbad9aa9b add new API uc_query() to query internal status of emulator at runtime 2016-01-23 17:14:44 +08:00
38d1443504 Merge branch 'hook-refactor' of https://github.com/lunixbochs/unicorn into lunixbochs-hook-refactor 2016-01-23 13:24:12 +08:00
2ac1281f82 rework code/block tracing 2016-01-22 19:07:50 -08:00
249e2ac0a0 Merge branch 'hook-refactor' of https://github.com/lunixbochs/unicorn into lunixbochs-hook-refactor 2016-01-23 10:58:37 +08:00
0886ae8ede rework code/block tracing 2016-01-22 18:42:27 -08:00
93052f6566 refactor to allow multiple hooks for one type 2016-01-22 18:41:43 -08:00
b4b83ff207 moar fixes 2016-01-23 12:56:47 +11:00
d8aaa2f44c Fixes to runtime arm mask checks 2016-01-23 12:44:12 +11:00
678d645b80 Fix uc_mode usage in source code 2016-01-23 12:29:22 +11:00
8763d426c2 Fix uc_mode usage in source code 2016-01-23 12:08:49 +11:00
6490b4f2a9 arm64: fix the issue of multiple definition of aarch64_tb_set_jmp_target (issue #387) 2016-01-22 22:44:18 +08:00
309abbe453 remove qemu/config-all-disas.mak 2016-01-22 17:11:57 +08:00
3eb51116b9 arm64: fix the access to tcg_op_defs[] in arm64 backend (issue #387) 2016-01-22 11:35:01 +08:00
840eb54f05 Revert "arm64: fix the access to tcg_op_defs[] in arm64 backend (issue #387)"
This reverts commit 3000ca6abf.
2016-01-22 11:33:36 +08:00
3000ca6abf arm64: fix the access to tcg_op_defs[] in arm64 backend (issue #387) 2016-01-22 11:33:28 +08:00
07bd81bda6 do not redefine tb_set_jmp_target1. this partly fixes issue #387 2016-01-22 11:29:22 +08:00
839ef672b0 only declare use_idiv_instructions_rt when __ARM_ARCH_EXT_IDIV__ is not defined 2016-01-19 00:19:28 +08:00
3b52af4fbd avoid confusion between macro & variable use_idiv_instructions (ARM backend) 2016-01-18 23:53:50 +08:00
d9249b91c2 add some missing symbols for ARM backend 2016-01-18 20:42:45 +08:00
8db7f79daf Finish adding getauxval 2016-01-18 12:48:49 +01:00
1bf85461c2 Add getauxval.c back 2016-01-18 12:47:32 +01:00
7695fb1578 x86: no need to reset env->invalid_error in x86_reg_reset() as we always do that in cpu_exec() 2016-01-12 01:01:11 +08:00
c9f4bd27cc Reset env->invalid_error before executing a translation block. 2016-01-11 18:12:57 +02:00
a0aa26d6ee c89 2016-01-10 23:34:36 +08:00
580bc7b56a cleanup 2016-01-10 23:10:00 +08:00
036763d6ae Fix memory leaks as reported by DrMemory and Valgrind.
ARM and probably the rest of the arches have significant memory leaks as
they have no release interface.

Additionally, DrMemory does not have 64-bit support and thus I can't
test the 64-bit version under Windows. Under Linux valgrind supports
both 32-bit and 64-bit but there are different macros and code for Linux
and Windows.
2016-01-08 01:42:56 +02:00
13726b3d40 Merge branch 'master' into cygwin 2016-01-07 23:17:32 +07:00
2304bbfc96 Remove more instances of tcg_register_jit 2016-01-07 16:39:41 +02:00
bfeb08d1ba fix some compilation warning 2016-01-06 14:11:21 +08:00