mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
ubsan: opcodes/csky-opc.h:929 shift exponent 536870912
opcodes/ * csky-opc.h: Formatting. (GENERAL_REG_BANK): Correct spelling. Update use throughout file. (get_register_name): Mask arch with CSKY_ARCH_MASK for shift, and shift 1u. (get_register_number): Likewise. * csky-dis.c (get_gr_name, get_cr_name): Don't mask mach_flag. gas/ * config/tc-csky.c (parse_type_ctrlreg): Don't mask mach_flag for csky_get_control_regno. (csky_get_reg_val): Likewise when calling csky_get_general_regno.
This commit is contained in:
@ -287,14 +287,14 @@ parse_csky_dis_options (const char *opts_in)
|
||||
static const char *
|
||||
get_gr_name (int regno)
|
||||
{
|
||||
return csky_get_general_reg_name (mach_flag & CSKY_ABI_MASK, regno, using_abi);
|
||||
return csky_get_general_reg_name (mach_flag, regno, using_abi);
|
||||
}
|
||||
|
||||
/* Get control register name. */
|
||||
static const char *
|
||||
get_cr_name (unsigned int regno, int bank)
|
||||
{
|
||||
return csky_get_control_reg_name (mach_flag & CSKY_ABI_MASK, bank, regno, using_abi);
|
||||
return csky_get_control_reg_name (mach_flag, bank, regno, using_abi);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Reference in New Issue
Block a user