From 940171d08654a9ff5bf9b8886f76e8189a02cf09 Mon Sep 17 00:00:00 2001 From: Anton Kolesov Date: Fri, 7 Apr 2017 17:22:39 +0300 Subject: [ARC] Add arc-cpu.def with processor definitions This patch extracts ARC CPU definitions from gas/config/tc-arc.c (cpu_types) into a separate file arc-cpu.def. This will allow reuse of CPU type definition in multiple places where it might be needed, for example in disassembler. This will help ensure that gas and disassembker use same option values for CPUs. arc-cpu.def file relies on preprocessor macroses which are defined somewhere else. This for example multiple C files to include arc-cpu.def, but define different macroses, therefore creating different structures. include/ChangeLog: yyyy-mm-dd Anton Kolesov * elf/arc-cpu.def: New file. gas/ChangeLog: yyyy-mm-dd Anton Kolesov * config/tc-arc.c (cpu_types): Include arc-cpu.def Signed-off-by: Anton Kolesov --- include/ChangeLog | 4 ++++ include/elf/arc-cpu.def | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 include/elf/arc-cpu.def (limited to 'include') diff --git a/include/ChangeLog b/include/ChangeLog index 20cae31..1ec91cd 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,7 @@ +2017-05-30 Anton Kolesov + + * elf/arc-cpu.def: New file. + 2017-05-24 Yao Qi * dis-asm.h: Move some function declarations to diff --git a/include/elf/arc-cpu.def b/include/elf/arc-cpu.def new file mode 100644 index 0000000..d0a7aee --- /dev/null +++ b/include/elf/arc-cpu.def @@ -0,0 +1,49 @@ +/* ARC processor types + Copyright (C) 2017 Free Software Foundation, Inc. + + This file is part of GAS, the GNU Assembler. + + GAS is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3, or (at your option) + any later version. + + GAS is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with GAS; see the file COPYING. If not, write to the Free + Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA + 02110-1301, USA. */ + + +ARC_CPU_TYPE_A7xx (arc700, 0x00), +ARC_CPU_TYPE_A7xx (nps400, NPS400), + +ARC_CPU_TYPE_AV2EM (arcem, 0x00), +ARC_CPU_TYPE_AV2EM (em, 0x00), +ARC_CPU_TYPE_AV2EM (em4, CD), +ARC_CPU_TYPE_AV2EM (em4_dmips, CD), +ARC_CPU_TYPE_AV2EM (em4_fpus, CD), +ARC_CPU_TYPE_AV2EM (em4_fpuda, CD | DPA), +ARC_CPU_TYPE_AV2EM (quarkse_em, CD | SPX | DPX), + +ARC_CPU_TYPE_AV2HS (archs, CD), +ARC_CPU_TYPE_AV2HS (hs, CD), +ARC_CPU_TYPE_AV2HS (hs34, CD), +ARC_CPU_TYPE_AV2HS (hs38, CD), +ARC_CPU_TYPE_AV2HS (hs38_linux, CD), + +ARC_CPU_TYPE_A6xx (arc600, 0x00), +ARC_CPU_TYPE_A6xx (arc600_norm, 0x00), +ARC_CPU_TYPE_A6xx (arc600_mul64, 0x00), +ARC_CPU_TYPE_A6xx (arc600_mul32x16, 0x00), +ARC_CPU_TYPE_A6xx (arc601, 0x00), +ARC_CPU_TYPE_A6xx (arc601_norm, 0x00), +ARC_CPU_TYPE_A6xx (arc601_mul64, 0x00), +ARC_CPU_TYPE_A6xx (arc601_mul32x16, 0x00), + +ARC_CPU_TYPE_NONE + -- cgit v1.1