Skip to content

Commit 891cffd

Browse files
committed
M680X: use cs_ac_type directly, instead of adding another e_access type
1 parent f768c7a commit 891cffd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

arch/M680X/M680XDisassembler.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,11 @@ typedef enum e_access_mode {
103103
} e_access_mode;
104104

105105
// Access type values are compatible with enum cs_ac_type:
106-
typedef enum e_access {
107-
UNCHANGED = CS_AC_INVALID,
108-
READ = CS_AC_READ,
109-
WRITE = CS_AC_WRITE,
110-
MODIFY = (CS_AC_READ | CS_AC_WRITE),
111-
} e_access;
106+
typedef cs_ac_type e_access;
107+
#define UNCHANGED CS_AC_INVALID
108+
#define READ CS_AC_READ
109+
#define WRITE CS_AC_WRITE
110+
#define MODIFY CS_AC_READ_WRITE
112111

113112
/* Properties of one instruction in PAGE1 (without prefix) */
114113
typedef struct inst_page1 {

0 commit comments

Comments
 (0)