Commit Graph

280 Commits

Author SHA1 Message Date
mio 19d8876e23
Deep copy for arm cpu state 2022-10-01 00:14:08 +02:00
mio 3d028882ed Fix wrong cput model check in uc_ctl 2022-07-23 20:49:00 +08:00
lazymio 6d61aec82f
Format code 2022-06-02 14:46:26 +02:00
lazymio fdd129fd30
Remember the regions a hook has intrumented and clear cache on deletion 2022-06-02 14:46:02 +02:00
lazymio 739fa45f50
Remove unused mmio 2022-06-01 23:43:53 +02:00
lazymio 289034538d
Cleaner implementation for uc_mem_prot on mmio regions 2022-05-28 23:46:06 +02:00
lazymio 2a6529348c
Support uc_mem_protect on mmio regions
Also make mmio ranges return the correct errors on wrong protection
2022-05-28 23:33:43 +02:00
lazymio 94cac9dfb4
Fix fallthrough in uc_ctl_tb_flush 2022-05-10 23:48:44 +02:00
lazymio 345b63ee96
Only exit TB if pc is within the memory range 2022-05-07 00:16:31 +02:00
Eric Poole cfee2139a0
TriCore Support (#1568)
* TriCore Support

python sample

* Update sample_tricore.py

Correct attribution

* Update sample_tricore.py

Fixed byte code to execute properly.

* Update sample_tricore.py

Removed testing artifact

* Added tricore msvc config-file.h

* Added STATIC to tricore config and added helper methods to symbol file generation.

* Update op_helper.c

Use built in crc32

* Fix tricore samples and small code blocks are now handled properly

* Add CPU types

* Generate bindings

* Format code

Co-authored-by: lazymio <mio@lazym.io>
2022-04-29 23:11:34 +02:00
lazymio aab93926dc
Fix a bug when nested uc_emu_start deletes a hook 2022-04-26 01:17:59 +02:00
lazymio 4e22744679
Support flushing translation blocks and flush when we don't need count hook 2022-04-26 01:17:58 +02:00
lazymio e8129b6f66
Revert "Fix https://github.com/unicorn-engine/unicorn/issues/1590" 2022-04-16 17:59:15 +02:00
lazymio 034844f7f9
Merge pull request #1592 from liyansong2018/mybranch1
Fix https://github.com/unicorn-engine/unicorn/issues/1590
2022-04-16 17:52:30 +02:00
lazymio c379d1bfe4
Format code 2022-04-16 17:50:12 +02:00
lazymio b136f08f2d
Check CPU model for uc_ctl 2022-04-16 17:49:47 +02:00
liyansong2018 88f4eba072 Fix https://github.com/unicorn-engine/unicorn/issues/1590 2022-04-13 21:53:58 +08:00
liyansong2018 9985974998 Fix https://github.com/unicorn-engine/unicorn/issues/1586 inner free 2022-04-11 15:48:11 +08:00
liyansong2018 a28d1dfbed Fix https://github.com/unicorn-engine/unicorn/issues/1586 2022-04-11 15:31:15 +08:00
lazymio 09b15e9071
Fix exits wrongly cleared in nested uc_emu_start 2022-03-06 23:40:34 +01:00
lazymio caf2fe1ddb
Clear state when exiting from uc_emu_start
This may cause unexpected result when we are in a nested uc_emu_start
2022-02-25 22:23:44 +01:00
lazymio 96518634fb
Fix the wrong block found when doing split_region 2022-02-12 21:34:46 +01:00
lazymio 2a84e33f03
Fix possible leak in hooks 2022-02-12 16:28:43 +01:00
lazymio 58fc952230
Remove armeb-softmmu and aarch64eb-softmmu 2022-02-12 14:15:54 +01:00
lazymio bbfb376a88
Merge pull request #1521 from unicorn-engine/s390x
S390X Support
2022-01-19 23:07:19 +01:00
mio 2ad9f152f9
Set emulation_done to true if and only if we exit the outer uc_emu_start
Or we may lost uc_emu_stop wrongly
2022-01-19 21:58:46 +01:00
mio 7095605607
Merge branch 'dev' into systemz 2022-01-18 21:10:55 +01:00
mio 0da1f02fde
Fix scale in tracing 2022-01-18 19:48:40 +01:00
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
mio faa689c0f0
Merge systemz to the latest uc2 codebase 2021-12-26 22:58:32 +01:00
Nguyen Anh Quynh 97b92d8861 initial systemz support 2021-12-06 04:19:37 +08:00
lazymio 5eb5686538
Format 2021-12-04 23:22:42 +01:00
lazymio 10d88e89a5
Fix uc_version and bump again 2021-11-25 18:19:46 +01:00
lazymio a3d842c485
Bump version and add patch field to uc_version 2021-11-25 14:29:04 +01:00
lazymio 78e0ddbc4d
Fix mmio unmap 2021-11-24 00:18:19 +01:00
lazymio c733bbada3
Fix wrong offset used in split_region 2021-11-23 23:22:53 +01:00
lazymio 87a391d549
Inline uc_tracecode when there is only exactly one hook 2021-11-21 16:44:39 +01:00
lazymio 8c2bc394bc
No need to save jmp_buf and uc in contexts
This reverts #1335 in fact
2021-11-16 21:18:27 +01:00
lazymio 247ffbe0e8
Support nested uc_emu_start calls 2021-11-16 21:07:03 +01:00
lazymio 640251e1aa
Leave out size parameter in callback 2021-11-09 00:21:34 +01:00
lazymio 56fcc07a7c
Add EXTRA field to uc_version 2021-11-08 22:51:49 +01:00
lazymio 35017a614f
Slightly change UC_CTL_TB_REMOVE_CACHE 2021-11-08 22:09:33 +01:00
lazymio cd02c25802
Fix bug in remove cache and update comments 2021-11-04 21:29:55 +01:00
lazymio 025e32df4a
Init uc on cpu model read 2021-11-04 20:00:01 +01:00
lazymio 3aa2788586
Format 2021-11-04 18:39:52 +01:00
lazymio ebe1f83293
Initialize UC when reading page size 2021-11-04 18:39:38 +01:00
lazymio dfbffa44ec
Support changing cpu model for ARM 2021-11-04 18:37:10 +01:00
lazymio 28013c13be
Don't init on page size read 2021-11-04 18:29:42 +01:00
lazymio 3e4b4af7d3
Support change page size 2021-11-04 17:03:30 +01:00
lazymio 6b5529fcb7
Merge pull request #1458 from bet4it/patch
Port some patches from Unicorn1 to Unicorn2
2021-11-03 20:59:42 +01:00