From: Cooper Qu Date: Mon, 7 Sep 2020 09:25:14 +0000 (+0800) Subject: CSKY: Change mvtc and mulsw's ISA flag. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6a1ed9106f4f937eddc194915d6e3ec4ecc79f20;p=binutils-gdb.git CSKY: Change mvtc and mulsw's ISA flag. gas/ * config/tc-csky.c (CSKYV2_ISA_DSP): CSKY_ISA_DSPE60. (CSKY_ISA_860): Likewise. include/ * opcode/csky.h (CSKY_ISA_DSPE60): Define. opcodes/ * csky-opc.h (csky_v2_opcodes): Change mvtc and mulsw's ISA flag. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 897d42b2445..94c3bbb4cdd 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-09-07 Cooper Qu + + * config/tc-csky.c (CSKYV2_ISA_DSP): CSKY_ISA_DSPE60. + (CSKY_ISA_860): Likewise. + 2020-09-07 Cooper Qu * config/tc-csky.c (float_abi): New. diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c index 25f77131d34..2d57bd24698 100644 --- a/gas/config/tc-csky.c +++ b/gas/config/tc-csky.c @@ -611,7 +611,7 @@ const struct csky_cpu_info csky_cpus[] = /* CK801 series. */ #define CSKY_ISA_801 CSKYV2_ISA_E1 -#define CSKYV2_ISA_DSP (CSKY_ISA_DSP | CSKY_ISA_DSP_1E2) +#define CSKYV2_ISA_DSP (CSKY_ISA_DSP | CSKY_ISA_DSP_1E2 | CSKY_ISA_DSPE60) {"ck801", CSKY_ARCH_801, CSKY_ISA_801}, {"ck801t", CSKY_ARCH_801, CSKY_ISA_801 | CSKY_ISA_TRUST}, @@ -708,7 +708,7 @@ const struct csky_cpu_info csky_cpus[] = {"ck810ftv", CSKY_ARCH_810_BASE | CSKY_ARCH_FLOAT, CSKY_ISA_810 | CSKYV2_ISA_DSP | CSKY_ISA_VDSP | CSKY_ISA_FLOAT_810 | CSKY_ISA_TRUST}, /* CK860 Series. */ -#define CSKY_ISA_860 (CSKY_ISA_810 | CSKYV2_ISA_10E60 | CSKYV2_ISA_3E3R3) +#define CSKY_ISA_860 (CSKY_ISA_810 | CSKYV2_ISA_10E60 | CSKYV2_ISA_3E3R3 | CSKY_ISA_DSPE60) #define CSKY_ISA_860F (CSKY_ISA_860 | CSKY_ISA_FLOAT_7E60) {"ck860", CSKY_ARCH_860, CSKY_ISA_860}, {"ck860f", CSKY_ARCH_860, CSKY_ISA_860F}, diff --git a/include/ChangeLog b/include/ChangeLog index 33998eb1dfa..28779bc6e48 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2020-09-07 Cooper Qu + + * opcode/csky.h (CSKY_ISA_DSPE60): Define. + 2020-09-07 Cooper Qu * opcode/csky.h (CSKY_ISA_FLOAT_7E60): Define. diff --git a/include/opcode/csky.h b/include/opcode/csky.h index 1ad7f581ab6..421454383e8 100644 --- a/include/opcode/csky.h +++ b/include/opcode/csky.h @@ -47,6 +47,7 @@ #define CSKY_ISA_DSP (1L << 20) #define CSKY_ISA_DSP_1E2 (1L << 21) #define CSKY_ISA_DSP_ENHANCE (1L << 22) +#define CSKY_ISA_DSPE60 (1L << 23) /* Base float instruction (803f & 810f). */ #define CSKY_ISA_FLOAT_E1 (1L << 25) diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 4f416bf7f94..bd5a284949d 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,8 @@ +2020-09-07 Cooper Qu + + * csky-opc.h (csky_v2_opcodes): Change mvtc and mulsw's + ISA flag. + 2020-09-07 Cooper Qu * csky-dis.c (csky_output_operand): Add handlers for diff --git a/opcodes/csky-opc.h b/opcodes/csky-opc.h index fac30ae61db..5a6068c329c 100644 --- a/opcodes/csky-opc.h +++ b/opcodes/csky-opc.h @@ -2687,7 +2687,7 @@ const struct csky_opcode csky_v2_opcodes[] = CSKY_ISA_DSP), OP32 ("mvtc", OPCODE_INFO0 (0xc4009a00), - CSKY_ISA_DSP), + CSKY_ISA_DSPE60), OP32 ("mfhi", OPCODE_INFO1 (0xc4009c20, (0_4, AREG, OPRND_SHIFT_0_BIT)), @@ -4119,7 +4119,7 @@ const struct csky_opcode csky_v2_opcodes[] = OPCODE_INFO2 (0xc4009420, (0_4or16_20, DUP_AREG, OPRND_SHIFT_0_BIT), (21_25, AREG, OPRND_SHIFT_0_BIT)), - CSKY_ISA_DSP), + CSKY_ISA_DSPE60), OP16_OP32 ("ld.b", SOPCODE_INFO2 (0x8000, (5_7, GREG0_7, OPRND_SHIFT_0_BIT),