@@ -70,7 +70,7 @@ const char *get_register_arrspec(Register reg, const InstructionOperand *operand
7070
7171int get_register_full (Register reg , const InstructionOperand * operand , char * result )
7272{
73- strcpy (result , get_register_name (reg ));
73+ strcpy (result , aarch64_get_register_name (reg ));
7474 if (result [0 ] == '\0' )
7575 return -1 ;
7676
@@ -95,7 +95,7 @@ uint32_t get_implementation_specific(const InstructionOperand *operand, char *ou
9595 operand -> implspec [4 ]) >= outBufferSize ;
9696}
9797
98- const char * get_operation (const Instruction * inst )
98+ const char * aarch64_get_operation (const Instruction * inst )
9999{
100100 return operation_to_str (inst -> operation );
101101}
@@ -107,7 +107,7 @@ static const char *const ConditionString[] = {
107107 "gt" , "le" , "al" , "nv"
108108};
109109
110- const char * get_condition (Condition cond )
110+ const char * aarch64_get_condition (Condition cond )
111111{
112112 if (cond < 0 || cond >= END_CONDITION )
113113 return NULL ;
@@ -122,7 +122,7 @@ static const char *const ShiftString[] = {
122122 "uxtb" , "msl"
123123};
124124
125- const char * get_shift (ShiftType shift )
125+ const char * aarch64_get_shift (ShiftType shift )
126126{
127127 if (shift <= ShiftType_NONE || shift >= ShiftType_END )
128128 return NULL ;
@@ -156,7 +156,7 @@ static inline uint32_t get_shifted_register(
156156 return FAILED_TO_DISASSEMBLE_REGISTER ;
157157 }
158158 }
159- const char * shiftStr = get_shift (operand -> shiftType );
159+ const char * shiftStr = aarch64_get_shift (operand -> shiftType );
160160 if (shiftStr == NULL )
161161 return FAILED_TO_DISASSEMBLE_OPERAND ;
162162 snprintf (
@@ -248,7 +248,7 @@ uint32_t get_memory_operand(
248248 if (operand -> shiftType != ShiftType_NONE )
249249 {
250250 if (snprintf (extendBuff , sizeof (extendBuff ), ", %s%s" ,
251- get_shift (operand -> shiftType ), immBuff ) >= sizeof (extendBuff ))
251+ aarch64_get_shift (operand -> shiftType ), immBuff ) >= sizeof (extendBuff ))
252252 {
253253 return FAILED_TO_DISASSEMBLE_OPERAND ;
254254 }
@@ -371,7 +371,7 @@ uint32_t get_shifted_immediate(const InstructionOperand *instructionOperand, cha
371371 return FAILED_TO_DISASSEMBLE_REGISTER ;
372372 }
373373 }
374- const char * shiftStr = get_shift (instructionOperand -> shiftType );
374+ const char * shiftStr = aarch64_get_shift (instructionOperand -> shiftType );
375375 if (shiftStr == NULL )
376376 return FAILED_TO_DISASSEMBLE_OPERAND ;
377377 snprintf (
@@ -419,9 +419,9 @@ uint32_t get_sme_tile(const InstructionOperand *operand, char *outBuffer, uint32
419419 char base_offset [32 ] = {'\0' };
420420 if (operand -> reg [0 ] != REG_NONE ) {
421421 if (operand -> arrSpec == ARRSPEC_FULL )
422- snprintf (base_offset , sizeof (base_offset ), "[%s]" , get_register_name (operand -> reg [0 ]));
422+ snprintf (base_offset , sizeof (base_offset ), "[%s]" , aarch64_get_register_name (operand -> reg [0 ]));
423423 else
424- snprintf (base_offset , sizeof (base_offset ), "[%s, #%" PRIu64 "]" , get_register_name (operand -> reg [0 ]), operand -> immediate );
424+ snprintf (base_offset , sizeof (base_offset ), "[%s, #%" PRIu64 "]" , aarch64_get_register_name (operand -> reg [0 ]), operand -> immediate );
425425 }
426426
427427 char * slice = "" ;
@@ -451,9 +451,9 @@ uint32_t get_indexed_element(const InstructionOperand *operand, char *outBuffer,
451451
452452 // <Pn>.<T>[<Wm>{, #<imm>}]
453453 if (snprintf (outBuffer , outBufferSize , "%s%s[%s%s]" ,
454- get_register_name (operand -> reg [0 ]),
454+ aarch64_get_register_name (operand -> reg [0 ]),
455455 get_arrspec_str_truncated (operand -> arrSpec ),
456- get_register_name (operand -> reg [1 ]),
456+ aarch64_get_register_name (operand -> reg [1 ]),
457457 optional_comma_and
458458 ) >= outBufferSize )
459459 return FAILED_TO_DISASSEMBLE_OPERAND ;
@@ -464,7 +464,7 @@ uint32_t get_indexed_element(const InstructionOperand *operand, char *outBuffer,
464464uint32_t get_accum_array (const InstructionOperand * operand , char * outBuffer , uint32_t outBufferSize )
465465{
466466 if (snprintf (outBuffer , outBufferSize , "ZA[%s, #%" PRIu64 "]" ,
467- get_register_name (operand -> reg [0 ]), operand -> immediate
467+ aarch64_get_register_name (operand -> reg [0 ]), operand -> immediate
468468 ) >= outBufferSize )
469469 return FAILED_TO_DISASSEMBLE_OPERAND ;
470470
@@ -484,7 +484,7 @@ int aarch64_disassemble(Instruction *instruction, char *buf, size_t buf_sz)
484484 return INVALID_ARGUMENTS ;
485485
486486 memset (operandStrings , 0 , sizeof (operandStrings ));
487- const char * operation = get_operation (instruction );
487+ const char * operation = aarch64_get_operation (instruction );
488488 if (operation == NULL )
489489 return FAILED_TO_DISASSEMBLE_OPERATION ;
490490
@@ -497,7 +497,7 @@ int aarch64_disassemble(Instruction *instruction, char *buf, size_t buf_sz)
497497 {
498498 case CONDITION :
499499 if (snprintf (tmpOperandString , sizeof (tmpOperandString ), "%s" ,
500- get_condition ((Condition )instruction -> operands [i ].cond )) >= sizeof (tmpOperandString ))
500+ aarch64_get_condition ((Condition )instruction -> operands [i ].cond )) >= sizeof (tmpOperandString ))
501501 return FAILED_TO_DISASSEMBLE_OPERAND ;
502502 operand = tmpOperandString ;
503503 break ;
@@ -592,7 +592,7 @@ int aarch64_disassemble(Instruction *instruction, char *buf, size_t buf_sz)
592592 }
593593 memset (buf , 0 , buf_sz );
594594 if (snprintf (buf , buf_sz , "%s%s%s%s%s%s" ,
595- get_operation (instruction ),
595+ aarch64_get_operation (instruction ),
596596 operandStrings [0 ],
597597 operandStrings [1 ],
598598 operandStrings [2 ],
0 commit comments