From 531c73a37bb4477f8337bb9dddc36d552ee76056 Mon Sep 17 00:00:00 2001 From: Cooper Qu Date: Mon, 24 Aug 2020 20:13:47 +0800 Subject: CSKY: Add new arch CK860. bfd/ * bfd-in2.h (bfd_mach_ck860): New. * cpu-csky.c (arch_info_struct): Add item for CK860. gas/ * config/tc-csky.c (csky_archs): Add item for CK860, change ck810 and ck807's arch_flag. (csky_cpus): Add item for CK860. (md_begin): Enable DSP for CK810 and CK807 by default. (md_apply_fix): Fix CKCORE_TLS_IE32 relocation failure. * gas/testsuite/gas/csky/cskyv2_all.d: Change 'sync 0' to 'sync'. * gas/testsuite/gas/csky/cskyv2_all.s: Likewise. * gas/testsuite/gas/csky/cskyv2_ck860.d: New. * gas/testsuite/gas/csky/cskyv2_ck860.s: New. * gas/testsuite/gas/csky/enhance_dsp.d: Change plsli.u16 to plsli.16. * gas/testsuite/gas/csky/enhance_dsp.s: Likewise. include/ * opcode/csky.h (CSKYV2_ISA_10E60): New. (CSKY_ARCH_860): New. opcode/ * csky-dis.c (csky_find_inst_info): Skip CK860's instructions in other CPUs to speed up disassembling. * csky-opc.h (csky_v2_opcodes): Add CK860's instructions, Change plsli.u16 to plsli.16, change sync's operand format. Change-Id: I80ec1a9c0cc600d668082a9b91ae6d45b33ec0fc --- include/ChangeLog | 5 +++++ include/opcode/csky.h | 2 ++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 22bf5a4..2ec02dc 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,8 @@ +2020-08-24 Cooper Qu + + * opcode/csky.h (CSKYV2_ISA_10E60): New. + (CSKY_ARCH_860): New. + 2020-08-21 Cooper Qu * csky.h (CSKYV2_ISA_3E3R2): New. diff --git a/include/opcode/csky.h b/include/opcode/csky.h index 9b9dcc3..098bdc9 100644 --- a/include/opcode/csky.h +++ b/include/opcode/csky.h @@ -30,6 +30,7 @@ #define CSKYV2_ISA_7E10 (1 << 5) #define CSKYV2_ISA_3E3R1 (1 << 6) #define CSKYV2_ISA_3E3R2 (1 << 7) +#define CSKYV2_ISA_10E60 (1 << 8) #define CSKY_ISA_TRUST (1 << 11) #define CSKY_ISA_CACHE (1 << 12) @@ -70,6 +71,7 @@ #define CSKY_ARCH_803 0x9 #define CSKY_ARCH_807 0x6 #define CSKY_ARCH_810 0x8 +#define CSKY_ARCH_860 0xb #define CSKY_ARCH_MAC (1 << 15) #define CSKY_ARCH_DSP (1 << 14) -- cgit v1.1