1581 Commits

Author SHA1 Message Date
Sidney Pontes Filho
f855c92b46 Adjust printing of Registers and upgrade TriCore test 2023-04-14 00:34:18 +08:00
Sidney Pontes Filho
3c63df7f45 Fix printing MemSrc 2023-04-14 00:34:17 +08:00
Sidney Pontes Filho
edbd73409c Remove all compiler warnings 2023-04-14 00:34:17 +08:00
Sidney Pontes Filho
dd4011297b Fix all compiler errors 2023-04-14 00:34:16 +08:00
Sidney Pontes Filho
4ec3dd12a8 Fix all errors in TriCoreInstPrinter 2023-04-14 00:34:15 +08:00
Sidney Pontes Filho
30f344a1c3 Fix all errors in TriCoreDisassembler 2023-04-14 00:34:14 +08:00
Sidney Pontes Filho
62dba6e681 Fix error of undeclared instructions and registers 2023-04-14 00:34:13 +08:00
Sidney Pontes Filho
bca9ef7420 Add group name maps 2023-04-14 00:34:12 +08:00
Sidney Pontes Filho
5e276956f8 Fix TriCore GenAsmWriter and InstPrinter 2023-04-14 00:34:11 +08:00
Sidney Pontes Filho
104ad28a7e Improve TriCore InstPrinter and Mapping 2023-04-14 00:34:10 +08:00
Sidney Pontes Filho
5d1cd026d8 Map instruction and fix part of InstPrinter 2023-04-14 00:34:10 +08:00
Sidney Pontes Filho
82c874c209 Fix Disassembler and TableGen Files of TriCore 2023-04-14 00:34:09 +08:00
Sidney Pontes Filho
f5687523e3 Modify Makefiles for TriCore architecture 2023-04-14 00:34:08 +08:00
Sidney Pontes Filho
67f3c46f1b Add TriCore Architecture 2023-04-14 00:34:07 +08:00
Wu ChenXu
b3c9068bcb Merge pull request #1960 from Rot127/sh-build-warnings
[SH] Fix build warnings
2023-04-06 18:01:54 +08:00
Rot127
c3cc9ae533 Remove unused variable 2023-04-06 03:57:28 -05:00
Wu ChenXu
05c2e95e4f Merge pull request #1974 from thomasdangl/next 2023-03-19 17:35:46 +08:00
Thomas Dangl
c08f80ce7a AArch64: fixes register access flags for moves 2023-03-14 15:50:11 +01:00
stevielavern
f1a36b6894 Fix for missing register usages on ARM64 authenticated branches (issue #1975) 2023-03-14 11:36:05 +01:00
Nam Cao
43ddc91283 correct register accesses for ARM's sxtb/uxtb and similar instructions 2023-03-07 18:59:06 +01:00
Rot127
854153e7c9 [SH] Fix several unused variable warnings. 2023-03-06 21:35:22 -05:00
Rot127
cd469285dd [SH] Fix unsued function warnings. 2023-02-24 13:52:09 -05:00
Wu ChenXu
fe63ddb108 Merge pull request #1927 from ysat0/superh 2023-01-27 14:58:24 +08:00
Johan Mattsson
81b57c6eb4 Fix potential array out of bounds 2022-11-26 15:59:18 +01:00
Yoshinori Sato
78a1fa2f5d SH: fix include path.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
2022-11-25 15:01:09 +09:00
Wu ChenXu
a7e325389b Merge pull request #1934 from frida/fix/custom-allocator-regressions
Fix regressions in custom memory allocator support
2022-11-24 18:35:19 +08:00
ζeh Matt
1249f05c49 Add post_index to arm 2022-11-22 22:25:08 +02:00
ζeh Matt
b5c865a0cd Add post_index field for cs_arm64 2022-11-22 19:23:32 +02:00
Yoshinori Sato
15bebb5cca Fix include path.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
2022-11-14 16:21:34 +09:00
Ole André Vadla Ravnås
4307c0a6a4 Fix regressions in custom memory allocator support
Where new code started using malloc() and free() directly instead of
going through the cs_mem_* functions.
2022-11-09 01:01:12 +01:00
Wu ChenXu
ba3effd320 Merge pull request #1925 from FinnWilkinson/next
Fixed SME index alias printing issue.
2022-10-24 19:10:17 +08:00
Yoshinori Sato
586e405a7c Merge remote-tracking branch 'origin/next' into superh 2022-10-13 12:30:15 +09:00
Yoshinori Sato
b681153238 sh: superh support backend.
Signed-off-by: Yoshinori Sato <ysato@users.sourceforge.jp>
2022-10-12 20:11:12 +09:00
Finn Wilkinson
51235dedef Fixed for loop initial declaration errors in AArch64InstPrinter. 2022-10-12 10:10:46 +01:00
pancake
b83d341b3d arm64: fix invalid free introduced in 662bb3f6cc204944614267158c1dd0eab03858df 2022-10-11 18:56:03 +02:00
Finn Wilkinson
483f14a920 Fixed SME index alias printing issue. 2022-10-11 15:37:34 +01:00
Wu ChenXu
215822fde7 Merge pull request #1921 from huth/fixes
m68k: Add support for the FNOP instruction
2022-10-07 13:57:15 +08:00
Wu ChenXu
c0e1839d5c Merge pull request #1907 from FinnWilkinson/AArch64-Armv9.2-update 2022-10-06 17:27:20 +08:00
Thomas Huth
15286490fb m68k: Add support for the FNOP instruction (fixes #1916)
The FNOP instruction has the same encoding as FBF with zero displacement,
but according to the manual, it has some additional synchronization
functions, so it would be good if Capstone disassembles this with the
FNOP mnemonic instead of the FBF mnemonic.

Before this change:

$ cstool m68k40 0xf2800000
 0  f2 80 00 00  fbf.w	$2

After this change:

$ cstool m68k40 0xf2800000
 0  f2 80 00 00  fnop
2022-10-02 08:07:33 +02:00
Thomas Huth
55dd90c50a m68k: Remove duplicated LIMIT_CPU_TYPES statement
The second one is unnecessary and was likely a copy-n-paste error.
2022-10-02 08:06:12 +02:00
Finn Wilkinson
6d5a3b1a44 Updated AArch64 Instruction Printer to support new Armv9.2 instructions.
Implemented new functions present in LLVM 14.0.5 for any new instruction
type in Armv9.2; mainly SME / Matrix printing functions.

New set_sme_index function added (called from AArch64GenAsmWriter.inc)
to correctly add operands to new sme_index operand type. Doing_SME_Index
bool added to cs_struct to indicate when operands should be added to
sme_index type.

Functionality added to support SMSTART/SMSTOP aliases.
2022-09-30 16:34:09 +01:00
Finn Wilkinson
222a8b4278 Updated AArch64 BaseInfo.h and Mapping.c to refelct Armv9.2 architectural changes and .inc file changes. 2022-09-30 16:14:37 +01:00
Finn Wilkinson
b60d0df0d8 Updated AArch64 Disassembler.
Added new decode functions, mainly for SME matrix operands and SVCR sys
register, as well as updating existing decode functions which have seen
changes in LLVM 14.0.5.

The _getInstruction function has also been updated to its LLVM 14.0.5
counterpart; with a new switch case for adding implicit operands to the
relevant SME instructions.
2022-09-30 16:07:07 +01:00
Finn Wilkinson
4a5e69f69e Generated new Armv9.2 AArch64 .inc files from LLVM 14.0.5 2022-09-30 15:51:03 +01:00
Mario Haustein
3f8a6e8537 PPC: fix out of bound memory access
closes #1912
2022-09-07 17:27:54 +02:00
pancake
23a4475cec Fix -Werror build 2022-07-31 15:24:52 +02:00
Richard Patel
4af02db7bc Avoid setting PowerPC branch hint on signed disp 2022-07-23 16:44:12 +02:00
Richard Patel
f1a2281f03 Fix PPC insn names and psq displacement 2022-07-23 16:44:12 +02:00
Richard Patel
6a13a78d21 Run synctools (PPC PS support) 2022-07-23 08:50:47 +02:00
pancake
f477dd4f70 One semicolon is enough in C (#1892)
Co-authored-by: pancake <pancake@nopcode.org>
2022-07-08 07:06:38 +08:00