Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading