mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-18 08:38:10 +08:00
CSKY: Add version flag in eflag and fix bug in disassembling register.
gas/ * config/tc-csky.c (md_begin): Add version flag in eflag. include/ * opcode/csky.h (CSKY_VERSION_V1): Define, currently used. (CSKY_VERSION_V2): Define. (CSKY_VERSION_V3): Define. Change-Id: Iafe3a9ce6fe544880a225b9fae439275a828bb34
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
|
||||||
|
|
||||||
|
* config/tc-csky.c (md_begin): Add version flag in eflag.
|
||||||
|
|
||||||
2020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
|
2020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
|
||||||
|
|
||||||
* config/tc-csky.c (get_operand_value): Add handler for
|
* config/tc-csky.c (get_operand_value): Add handler for
|
||||||
@ -5,7 +9,6 @@
|
|||||||
* testsuite/gas/csky/csky_vdsp.d : Fix the disassembling for
|
* testsuite/gas/csky/csky_vdsp.d : Fix the disassembling for
|
||||||
vector register.
|
vector register.
|
||||||
|
|
||||||
|
|
||||||
2020-10-26 Lili Cui <lili.cui@intel.com>
|
2020-10-26 Lili Cui <lili.cui@intel.com>
|
||||||
|
|
||||||
* testsuite/gas/i386/avx-vnni.d: Change psuedo prefix from
|
* testsuite/gas/i386/avx-vnni.d: Change psuedo prefix from
|
||||||
|
@ -1852,7 +1852,7 @@ md_begin (void)
|
|||||||
str_hash_insert (csky_macros_hash,
|
str_hash_insert (csky_macros_hash,
|
||||||
v2_lrw_macro_opcode.name, &v2_lrw_macro_opcode, 0);
|
v2_lrw_macro_opcode.name, &v2_lrw_macro_opcode, 0);
|
||||||
/* Set e_flag to ELF Head. */
|
/* Set e_flag to ELF Head. */
|
||||||
bfd_set_private_flags (stdoutput, mach_flag & ~(0xffff));
|
bfd_set_private_flags (stdoutput, mach_flag | CSKY_VERSION_V1);
|
||||||
/* Set bfd_mach to bfd backend data. */
|
/* Set bfd_mach to bfd backend data. */
|
||||||
bfd_set_arch_mach (stdoutput, bfd_arch_csky, bfd_mach_flag);
|
bfd_set_arch_mach (stdoutput, bfd_arch_csky, bfd_mach_flag);
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
|
||||||
|
|
||||||
|
* opcode/csky.h (CSKY_VERSION_V1): New, currently used.
|
||||||
|
(CSKY_VERSION_V2): New.
|
||||||
|
(CSKY_VERSION_V3): New.
|
||||||
|
|
||||||
2020-10-21 Tom Tromey <tromey@adacore.com>
|
2020-10-21 Tom Tromey <tromey@adacore.com>
|
||||||
|
|
||||||
* ctf-api.h (_CTF_ERRORS): New macro.
|
* ctf-api.h (_CTF_ERRORS): New macro.
|
||||||
|
@ -93,6 +93,11 @@
|
|||||||
#define CSKY_ARCH_JAVA (1 << 8)
|
#define CSKY_ARCH_JAVA (1 << 8)
|
||||||
#define CSKY_ARCH_APS (1 << 7)
|
#define CSKY_ARCH_APS (1 << 7)
|
||||||
|
|
||||||
|
/* eflag's Versions. */
|
||||||
|
#define CSKY_VERSION_V1 (1 << 24)
|
||||||
|
#define CSKY_VERSION_V2 (2 << 24)
|
||||||
|
#define CSKY_VERSION_V3 (3 << 24)
|
||||||
|
|
||||||
#define IS_CSKY_V1(a) \
|
#define IS_CSKY_V1(a) \
|
||||||
(((a) & CSKY_ABI_MASK) == CSKY_ABI_V1)
|
(((a) & CSKY_ABI_MASK) == CSKY_ABI_V1)
|
||||||
#define IS_CSKY_V2(a) \
|
#define IS_CSKY_V2(a) \
|
||||||
|
Reference in New Issue
Block a user