4993 Commits

Author SHA1 Message Date
Rot127
48cd538c95 [ARM] Remove LDM leftover code (#2115) 2023-07-23 23:18:17 +08:00
Wu ChenXu
c4947a9ec3 Merge pull request #2121 from Rot127/arm-implicit-reads
[ARM] Add CPSR implicit read for every instruction with predicate
2023-07-23 16:41:18 +08:00
Wu ChenXu
94b63af5cb Merge pull request #2119 from Rot127/arm-hard-coded-operands
Add more in LLVM hard coded operands.
2023-07-23 16:40:39 +08:00
Wu ChenXu
c06f83d17a Merge pull request #2116 from Rot127/sysreg-names 2023-07-23 09:14:53 +08:00
Rot127
235ac3ca4d Add forgotten check 2023-07-22 14:02:17 -05:00
Rot127
8b50621184 Formatting 2023-07-22 13:56:45 -05:00
Rot127
80961dac84 Add CPSR to implicit reads for every instruction which has a predicate. 2023-07-22 13:56:32 -05:00
Rot127
2b6cc3c67c Add more in LLVM hard coded operands. 2023-07-22 13:43:58 -05:00
Rot127
47cf68e312 Return firs the system register name.
Note: System registers and banked register encodings overlap.
So this might lead to problems. But cstool only asks for system registers.
So it should be fine for now.
2023-07-22 13:07:59 -05:00
Wu ChenXu
8a32e34d18 Merge pull request #2107 from Rot127/fix-arm
[ARM] Add missing detail check
2023-07-22 23:18:51 +08:00
Wu ChenXu
503009a8b0 Merge pull request #2112 from Rot127/arm-enum-conversion
Set sysop members by their C++ type name.
2023-07-22 23:17:31 +08:00
Wu ChenXu
8b6c3e2a56 Merge pull request #2111 from Rot127/arm-pop-alias
Add pop alias instruction for `t2LDR_POST`
2023-07-22 23:17:12 +08:00
Rot127
1142466810 Remove leftover code. 2023-07-22 10:00:34 -05:00
Rot127
c14c245986 Set sysop members by their C++ type name.
Prevents build warnings of implicit enum convertions.
2023-07-22 09:08:11 -05:00
Wu ChenXu
ff31c749a3 Merge pull request #2110 from Rot127/inter-os-printf-formatting-next 2023-07-22 20:41:52 +08:00
Rot127
4a6b6d85b5 Add pop alias instruction for t2LDR_POST 2023-07-22 06:46:02 -05:00
Rot127
6511ca8b1f Use OS independent printf formatting. 2023-07-22 04:19:22 -05:00
Rot127
fc32133bb0 Add check for present detail. 2023-07-21 10:42:26 -05:00
Wu ChenXu
bd003941a8 Merge pull request #2100 from peace-maker/sync_bindings
Sync Python bindings for x86, m68k, and mos65xx
2023-07-21 23:35:50 +08:00
Wu ChenXu
aab2aa85cd Merge pull request #2097 from peace-maker/update_python_constants
Update Python binding constants
2023-07-21 23:34:53 +08:00
Wu ChenXu
188356c1d5 Merge pull request #2095 from peace-maker/python_wasm
Add Python bindings for WASM
2023-07-21 23:32:22 +08:00
Anton Kochkov
d3a0e7ff99 ci: use cibuildwheel for python wheels (#2099)
* ci: use cibuildwheel for python wheels

* fix several issues

* fix setup.py

* fix issue

* Compatible with python2

* fix str

* trigger ci

---------

Co-authored-by: kabeor <kabeor00@gmail.com>
2023-07-21 23:15:46 +08:00
Wu ChenXu
c6c07e9731 Merge pull request #2103 from Rot127/fix-header-include
Fix #2101 - Install cs_operand.h as a public header file
2023-07-21 22:00:37 +08:00
Rot127
a96796d090 fix #2101 2023-07-21 04:04:08 -05:00
Peace-Maker
3175055ac2 Update Python bindings for mos65xx 2023-07-20 13:49:38 +02:00
Peace-Maker
e0ea140459 Update Python bindings for m68k 2023-07-20 13:49:31 +02:00
Peace-Maker
fd5c6b0adc Update Python bindings for x86 2023-07-20 13:49:14 +02:00
Wu ChenXu
e87bb5ec0d Merge pull request #2098 from XVilka/fix-windows-python-ci
ci: use proper job syntax for Windows
2023-07-20 10:56:26 +08:00
Anton Kochkov
ac7a365683 ci: use proper job syntax for Windows 2023-07-20 10:45:07 +08:00
Wu ChenXu
799aeca352 Merge pull request #2092 from Rot127/fix-build
[Workflows] Update manylinux docker images
2023-07-20 10:32:06 +08:00
Rot127
102a6bdc28 Bumb manylinux version to 2014 (x86) and 2_28 (x86_64) repectivly.
manylinux1 is EOL since 2 years. Just like Python 3.6
Fixes wheel build.
2023-07-19 11:13:25 -05:00
Peace-Maker
885fbda22e Update constants from ARM auto-sync patch 2023-07-19 17:52:54 +02:00
Peace-Maker
b3f391e7a2 Update CS_* constants in Python bindings 2023-07-19 17:38:22 +02:00
Peace-Maker
c17009c802 Add Python bindings for WASM 2023-07-19 17:26:56 +02:00
Rot127
fbb061620f Run clang-format (#2093) 2023-07-19 19:46:00 +08:00
Rot127
104f693c11 Architecture updater (auto-sync) - Updating ARM (#1949)
* Add auto-sync updater.

* Update Capstone core with auto-sync changes.

* Update ARM via auto-sync.

* Make changes to arch modules which are introduced by auto-sync.

* Update tests for ARM.

* Fix build warnings for make

* Remove meson.build

* Print shift amount in decimal

* Patch non LLVM register alias.

* Change type of immediate operand to unsiged (due to: #771)

* Replace all occurances of a register with its alias.

* Fix printing of signed imms

* Print rotate amount in decimal

* CHange imm type to int64_t to match LLVM imm type.

* Fix search for register names, by completing string first.

* Print ModImm operands always in decimal

* Use number format of previous capstone version.

* Correct implicit writes and update_flags according to SBit.

* Add missing test for RegImmShift

* Reverse incorrect comparision.

* Set shift information for move instructions.

* Set mem access for all memory operands

* Set subtracted flag if offset is negative.

* Add flag for post-index memory operands.

* Add detail op for BX_RET and MOVPCLR

* Use instruction post_index operand.

* Add VPOP and VPUSH as unique CS IDs.

* Add shifting info for MOVsr.

* Add TODOs.

* Add in LLVM hardcoded operands to detail.

* Move detail editing from InstPrinter to Mapping

* Formatting

* Add removed check.

* Add writeback register and constraints to RFEI instructions.

* Translate shift immediate

* Print negative immediates

* Remove duplicate invalid entry

* Add CS groups to instructions

* Fix write attriutes of stores.

* Add missing names of added instructions

* Fix LLVM bug

* Add more post_index flags

* http -> https

* Make generated functions static

* Remove tab prefix for alias instructions.

* Set ValidateMCOperand to NULL.

* Fix AddrMode3Operand operands

* Allow getting system and banked register name via API

* Add writeback to STC/LDC instructions.

* Fix (hopefully) last case where disp is negative and subtracted = true

* Remove accidentially introduced regressions
2023-07-19 17:56:27 +08:00
Anton Kochkov
be5a26c754 [SuperH]: fix IMM format specifier in test (#2080) 2023-07-19 00:03:30 +08:00
Nguyen Anh Quynh
cc9994ea17 python: update binding README 2023-07-06 00:03:39 +08:00
Nguyen Anh Quynh
9423fe36c9 5.0-post1 2023-07-05 23:30:22 +08:00
Wu ChenXu
5d2ed996bd Update ChangeLog v5.0 Final 2023-07-05 22:58:24 +08:00
Wu ChenXu
851c783dc4 Merge pull request #2074 from XVilka/remove-todo
Remove outdated and irrelevant TODO
2023-07-05 21:14:26 +08:00
Wu ChenXu
d08b071983 Merge pull request #2075 from Rot127/sparc-strncpy
Replace strncpy with memcpy to fix compiler warning.
2023-07-05 21:10:48 +08:00
Rot127
8fefc328b9 Replace strncpy with memcpy to fix compiler warning. 2023-07-05 04:40:32 -05:00
Anton Kochkov
f88c06f5d8 Remove outdated and irrelevant TODO 2023-07-05 17:19:21 +08:00
Nguyen Anh Quynh
33bea52db9 update pkgconfig.mk for 5.0 2023-07-05 13:43:15 +08:00
Nguyen Anh Quynh
bd72f9db52 ChangeLog 2023-07-05 13:42:49 +08:00
Nguyen Anh Quynh
a54284023c bindings: update Java consts for Arm64 2023-07-05 13:36:21 +08:00
Wu ChenXu
019fc85a8e Update ChangeLog to Version 5.0.0 2023-07-03 17:21:29 +08:00
Ole André Vadla Ravnås
4c6bc81c79 Revert "Mark cs_* as thread local to avoid race condition in multithreads" (#1933)
Having per-thread memory allocation routines is a major change in
behavior that likely broke a lot of applications.

This reverts commit bdab89496e654d043f556e27a68c2ac47dd571a7.
2023-07-01 16:57:10 -07:00
Wu ChenXu
aa0cfac862 Merge pull request #2070 from imbillow/tricore-fix 2023-07-01 22:20:12 +08:00