Skip to content

Commit

Permalink
Fix sysop access in Python data structures.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rot127 committed Sep 19, 2024
1 parent 46d4a53 commit ec4352e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bindings/python/cstest_py/src/cstest_py/details.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,20 +752,20 @@ def test_expected_aarch64(actual: CsInsn, expected: dict) -> bool:
return False
elif aop.type == AARCH64_OP_SYSREG:
if not compare_enum(
aop.value.sysop.sub_type, eop.get("sub_type"), "sub_type"
aop.sysop.sub_type, eop.get("sub_type"), "sub_type"
):
return False
if not compare_uint64(
aop.value.sysop.reg.raw_val, eop.get("sys_raw_val"), "sys_raw_val"
aop.sysop.reg.raw_val, eop.get("sys_raw_val"), "sys_raw_val"
):
return False
elif aop.type == AARCH64_OP_SYSIMM:
if not compare_enum(
aop.value.sysop.sub_type, eop.get("sub_type"), "sub_type"
aop.sysop.sub_type, eop.get("sub_type"), "sub_type"
):
return False
if not compare_uint64(
aop.value.sysop.imm.raw_val, eop.get("sys_raw_val"), "sys_raw_val"
aop.sysop.imm.raw_val, eop.get("sys_raw_val"), "sys_raw_val"
):
return False
# EXACTFPIMM operands
Expand All @@ -775,11 +775,11 @@ def test_expected_aarch64(actual: CsInsn, expected: dict) -> bool:
return False
elif aop.type == AARCH64_OP_SYSALIAS:
if not compare_enum(
aop.value.sysop.sub_type, eop.get("sub_type"), "sub_type"
aop.sysop.sub_type, eop.get("sub_type"), "sub_type"
):
return False
if not compare_uint64(
aop.value.sysop.alias.raw_val, eop.get("sys_raw_val"), "sys_raw_val"
aop.sysop.alias.raw_val, eop.get("sys_raw_val"), "sys_raw_val"
):
return False
elif aop.type == AARCH64_OP_PRED:
Expand Down

0 comments on commit ec4352e

Please sign in to comment.