Skip to content

Commit

Permalink
This time actually fix big endian issue.
Browse files Browse the repository at this point in the history
Of course an enum value has the width of an int.
If it is 64bits long and on a big endian machine,
the enum value gets assigned to the upper bits.
Not the lower ones.
  • Loading branch information
Rot127 committed Oct 28, 2024
1 parent 306d571 commit 6855d7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/capstone/aarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1972,13 +1972,13 @@ typedef union {
aarch64_sysreg sysreg;
aarch64_tlbi tlbi;
aarch64_ic ic;
uint64_t raw_val;
int raw_val;
} aarch64_sysop_reg;

typedef union {
aarch64_dbnxs dbnxs;
aarch64_exactfpimm exactfpimm;
uint64_t raw_val;
int raw_val;
} aarch64_sysop_imm;

typedef union {
Expand All @@ -1997,7 +1997,7 @@ typedef union {
aarch64_bti bti;
aarch64_svepredpat svepredpat;
aarch64_sveveclenspecifier sveveclenspecifier;
uint64_t raw_val;
int raw_val;
} aarch64_sysop_alias;

/// Operand type for instruction's operands
Expand Down

0 comments on commit 6855d7a

Please sign in to comment.