Commit Graph

283 Commits

Author SHA1 Message Date
mio
28e791a37f Add debug tracing feature
It's disabled by default, use -DUNICORN_TRACER=on to enable it
2022-01-18 19:35:43 +01:00
a5ceca6d51 Remove the static variable in flatviews_init
Or we may get an invalid old (and free-ed) uc instance reference
2022-01-15 22:11:14 +01:00
36afa1022c More PPC registers
Add FPR0-31, CR0-7, LR, CTR, MSR, XER, FPSCR for PPC

Add a test for ppc32 float point
2022-01-10 15:16:10 +01:00
4567b4a790 Fix the wrong arm cpu index 2022-01-05 21:57:46 +01:00
d854e22301 Add x87 FPU registers #1524 2022-01-04 21:12:12 +01:00
7bb756249a Better design of cpuid instruction hook 2021-12-22 20:36:56 +01:00
3020d7b82a Fix wrong m68k enums 2021-12-04 23:20:46 +01:00
10d88e89a5 Fix uc_version and bump again 2021-11-25 18:19:46 +01:00
a3d842c485 Bump version and add patch field to uc_version 2021-11-25 14:29:04 +01:00
78e0ddbc4d Fix mmio unmap 2021-11-24 00:18:19 +01:00
cb33fb2570 Format code 2021-11-23 23:23:02 +01:00
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
87a391d549 Inline uc_tracecode when there is only exactly one hook 2021-11-21 16:44:39 +01:00
8c2bc394bc No need to save jmp_buf and uc in contexts
This reverts #1335 in fact
2021-11-16 21:18:27 +01:00
247ffbe0e8 Support nested uc_emu_start calls 2021-11-16 21:07:03 +01:00
640251e1aa Leave out size parameter in callback 2021-11-09 00:21:34 +01:00
56fcc07a7c Add EXTRA field to uc_version 2021-11-08 22:51:49 +01:00
35017a614f Slightly change UC_CTL_TB_REMOVE_CACHE 2021-11-08 22:09:33 +01:00
6ec016327d Rename uc_hook_tcg_sub_t 2021-11-08 21:01:47 +01:00
4df0ad5e83 Update docs for exits mechanism 2021-11-08 20:54:07 +01:00
e836b62e01 Minor fix for uc_ctl 2021-11-08 20:40:02 +01:00
c6fdbb3735 Add RISCV CSR registers 2021-11-07 20:36:04 +01:00
cd02c25802 Fix bug in remove cache and update comments 2021-11-04 21:29:55 +01:00
a9bfa0afb0 Update comments 2021-11-04 21:22:49 +01:00
01d7e454b7 Fix typo 2021-11-04 20:59:07 +01:00
1507f90059 Fix name typo 2021-11-04 20:07:01 +01:00
b9c0066a47 Format and naming 2021-11-04 20:04:57 +01:00
871de4ad65 Split mips cpu to 32 and 64 2021-11-04 19:58:32 +01:00
0555095388 Support changing cpu model for ppc 2021-11-04 19:53:02 +01:00
94d952b410 Add depreciated in unicorn.h 2021-11-04 18:44:56 +01:00
dfbffa44ec Support changing cpu model for ARM 2021-11-04 18:37:10 +01:00
3e4b4af7d3 Support change page size 2021-11-04 17:03:30 +01:00
6b5529fcb7 Merge pull request #1458 from bet4it/patch
Port some patches from Unicorn1 to Unicorn2
2021-11-03 20:59:42 +01:00
9818840f4e Add tests for UC_HOOK_TCG_OPCODE 2021-11-03 20:56:45 +01:00
bcf85be86d Add a new hook type UC_HOOK_TCG_OPCODE 2021-11-03 01:46:24 +01:00
aaf340d9e4 Merge branch 'dev' into patch 2021-11-02 18:36:22 +08:00
c11b9aa5c3 Add a new hook type UC_HOOK_EDGE_GENERATED and corresponding sample 2021-11-01 23:27:35 +01:00
b7e82d460c Expose more TB related stuff 2021-11-01 22:11:43 +01:00
fb45b287ba Add multiple exits mechanism and tests&samples 2021-11-01 14:00:43 +01:00
3dd2e0f95d Basic implementation of uc_ctl 2021-11-01 00:39:36 +01:00
090686f8ed uc_ctl proposal (#1473)
* Add uc_ctl

* Add comments

* Slightly changed for bindings generation

* Generate bindings
2021-10-30 10:45:32 +08:00
e62b0ef255 Add clang-format and format code to qemu code style 2021-10-29 12:44:49 +02:00
e695686c15 Remove AFL Integration by reverting 2021-10-26 11:22:21 +02:00
1fa2eb688b Fix UC_MODE_AFL and update config 2021-10-25 14:39:40 +02:00
d965c0f159 Use UCLOG and fix uc_afl_fuzz 2021-10-25 10:46:52 +02:00
dd7476a9bd Initial import unicornafl 2021-10-25 00:51:16 +02:00
5eab884244 compile on VS2008/VS2010 (#1397)
Compiling with Win32 Release/MinSizeRel/RelWithDebInfo in VS2008 will cause "fatal error C1063: compiler limit: compiler stack overflow" problem.
Compiling with Win32 Debug or x64 does not have this problem.
You can easily bypass this problem by changing the optimization options /O1 and /O2 to /Od.
In VS2010, when _INTPTR is 0 or 1, UINTPTR_MAX is 0xFFFFFFFF.
2021-10-12 08:50:22 +08:00
00b4a17c1b Fix some typos in include files (#1350) 2021-10-11 11:18:27 +08:00
mio
4c438e7774 Update comments for UC_HOOK_INSN 2021-10-05 18:15:31 +02:00
mio
46e8ac03ad Remove useless x86 registers according to #1440 2021-10-04 11:03:56 +02:00