[ARC] Add arc-cpu.def with processor definitions
authorAnton Kolesov <Anton.Kolesov@synopsys.com>
Fri, 7 Apr 2017 14:22:39 +0000 (17:22 +0300)
committerAnton Kolesov <Anton.Kolesov@synopsys.com>
Tue, 30 May 2017 13:52:28 +0000 (16:52 +0300)
commit940171d08654a9ff5bf9b8886f76e8189a02cf09
treed16f8581c7549ec2193ab435ce8a0ebf39f9674e
parent64984c22f7045d53590f816e7ba0b9b9fa1dbbe7
[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  <anton.kolesov@synopsys.com>

* elf/arc-cpu.def: New file.

gas/ChangeLog:
yyyy-mm-dd  Anton Kolesov  <anton.kolesov@synopsys.com>

* config/tc-arc.c (cpu_types): Include arc-cpu.def

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>
gas/ChangeLog
gas/config/tc-arc.c
include/ChangeLog
include/elf/arc-cpu.def [new file with mode: 0644]