Skip to content

Commit

Permalink
Merge pull request #1932 from FinnWilkinson/next
Browse files Browse the repository at this point in the history
  • Loading branch information
kabeor committed Nov 8, 2022
2 parents 087889d + bc583a7 commit 52f0cd1
Show file tree
Hide file tree
Showing 3 changed files with 2,754 additions and 1,967 deletions.
13 changes: 13 additions & 0 deletions bindings/python/capstone/arm64.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ class Arm64OpMem(ctypes.Structure):
('disp', ctypes.c_int32),
)

class Arm64OpSmeIndex(ctypes.Structure):
_fileds_ = (
('reg', ctypes.c_uint),
('base', ctypes.c_uint),
('disp', ctypes.c_int32),
)

class Arm64OpShift(ctypes.Structure):
_fields_ = (
('type', ctypes.c_uint),
Expand All @@ -28,6 +35,7 @@ class Arm64OpValue(ctypes.Union):
('sys', ctypes.c_uint),
('prefetch', ctypes.c_int),
('barrier', ctypes.c_int),
('sme_index', Arm64OpSmeIndex),
)

class Arm64Op(ctypes.Structure):
Expand All @@ -37,6 +45,7 @@ class Arm64Op(ctypes.Structure):
('shift', Arm64OpShift),
('ext', ctypes.c_uint),
('type', ctypes.c_uint),
('svcr', ctypes.c_uint),
('value', Arm64OpValue),
('access', ctypes.c_uint8),
)
Expand Down Expand Up @@ -72,6 +81,10 @@ def prefetch(self):
@property
def barrier(self):
return self.value.barrier

@property
def sme_index(self):
return self.value.sme_index



Expand Down

0 comments on commit 52f0cd1

Please sign in to comment.