Skip to content

Commit

Permalink
Fix AArch64 Python bindings:
Browse files Browse the repository at this point in the history
- Do not generate constants automatically (dscript is way too buggy).
- Update printing of details.
  • Loading branch information
Rot127 committed Nov 2, 2023
1 parent 6de0eaf commit 0fb11c7
Show file tree
Hide file tree
Showing 4 changed files with 2,393 additions and 36 deletions.
5 changes: 1 addition & 4 deletions bindings/const_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

INCL_DIR = '../include/capstone/'

include = [ 'arm.h', 'aarch64.h', 'm68k.h', 'mips.h', 'x86.h', 'ppc.h', 'sparc.h', 'systemz.h', 'xcore.h', 'tms320c64x.h', 'm680x.h', 'evm.h', 'mos65xx.h', 'wasm.h', 'bpf.h' ,'riscv.h', 'sh.h', 'tricore.h' ]
include = [ 'arm.h', 'm68k.h', 'mips.h', 'x86.h', 'ppc.h', 'sparc.h', 'systemz.h', 'xcore.h', 'tms320c64x.h', 'm680x.h', 'evm.h', 'mos65xx.h', 'wasm.h', 'bpf.h' ,'riscv.h', 'sh.h', 'tricore.h' ]

template = {
'java': {
Expand All @@ -15,7 +15,6 @@
'out_file': './java/capstone/%s_const.java',
# prefixes for constant filenames of all archs - case sensitive
'arm.h': 'Arm',
'aarch64.h': 'AArch64',
'm68k.h': 'M68k',
'mips.h': 'Mips',
'x86.h': 'X86',
Expand All @@ -38,7 +37,6 @@
'out_file': './python/capstone/%s_const.py',
# prefixes for constant filenames of all archs - case sensitive
'arm.h': 'arm',
'aarch64.h': 'aarch64',
'm68k.h': 'm68k',
'mips.h': 'mips',
'x86.h': 'x86',
Expand All @@ -65,7 +63,6 @@
'out_file': './ocaml/%s_const.ml',
# prefixes for constant filenames of all archs - case sensitive
'arm.h': 'arm',
'aarch64.h': 'aarch64',
'mips.h': 'mips',
'm68k.h': 'm68k',
'x86.h': 'x86',
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/capstone/aarch64.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,5 @@ class CsAArch64(ctypes.Structure):
)

def get_arch_info(a):
return (a.cc, a.update_flags, a.writeback, a.post_index, copy_ctypes_list(a.operands[:a.op_count]))
return (a.cc, a.update_flags, a.post_index, a.is_doing_sme, copy_ctypes_list(a.operands[:a.op_count]))

Loading

0 comments on commit 0fb11c7

Please sign in to comment.