aboutsummaryrefslogtreecommitdiff
path: root/opcodes/csky-dis.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-25 20:52:46 +0930
committerAlan Modra <amodra@gmail.com>2020-09-26 15:28:22 +0930
commit0be2fe677c53c6d363a40ae3612d4490ba377e02 (patch)
treedf15146097019c76042a73b056bee7d82af3b5b4 /opcodes/csky-dis.c
parent0919fa3c461ab524ee6ed2acf0a5b9f4a5c62de8 (diff)
downloadgdb-0be2fe677c53c6d363a40ae3612d4490ba377e02.zip
gdb-0be2fe677c53c6d363a40ae3612d4490ba377e02.tar.gz
gdb-0be2fe677c53c6d363a40ae3612d4490ba377e02.tar.bz2
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.
Diffstat (limited to 'opcodes/csky-dis.c')
-rw-r--r--opcodes/csky-dis.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opcodes/csky-dis.c b/opcodes/csky-dis.c
index ce20f58..b31b685 100644
--- a/opcodes/csky-dis.c
+++ b/opcodes/csky-dis.c
@@ -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