This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v3 0/5] [ARC] Convert nps400 from a machine type to an extension


This is a modified set of patches in response to feedback. Changes from the
original series are:

- Updated gas/config/tc-arc.c:md_show_usage() to include possible command line
  options.
- Updated gas/doc/c-arc.texi to include the new options.
- Refactored the checks in gas/config/tc-arc.c:check_cpu_feature().

The original series of patches begins at:
https://sourceware.org/ml/binutils/2016-06/msg00261.html

Original message follows:

The NPS400 is an ARC700 variant with a specific extension set. It should
be possible to link NPS400 and ARC700 code together, but this is
inhibited by NPS400 currently being a separate machine type to ARC700.

This set of patches removes NPS400 as a machine type and changes all
NPS400 instructions to be ARC700 instructions with the instruction
subclass NPS400. These instructions are enabled either by passing
either -mcpu=nps400 (as before) or -mcpu=arc700 and -mnps400 to
enable the extension set.

The removal of the machine type includes the removal of a constant which
is documented as being unable to be changed (E_ARC_MACH_NPS400) in
include/elf/arc.h - however, there hasn't been a release since this was
added, so it shouldn't cause any problems to remove it.

Andrew Burgess (1):
  [ARC]: Add -mcpu=nps400 command line option

Graham Markall (4):
  [ARC] Add NPS400 instruction subclass and flag
  [ARC] Update command line option documentation
  [ARC] Make NPS-400 an insn subclass instead of CPU
  [ARC] Remove NPS-400 as a machine type

 bfd/ChangeLog                         |   8 +
 bfd/archures.c                        |   1 -
 bfd/bfd-in2.h                         |   1 -
 bfd/cpu-arc.c                         |   5 +-
 bfd/elf32-arc.c                       |   6 -
 binutils/ChangeLog                    |   4 +
 binutils/readelf.c                    |   3 -
 gas/ChangeLog                         |  47 +++++
 gas/config/tc-arc.c                   |  70 +++++--
 gas/doc/c-arc.texi                    |  24 ++-
 gas/testsuite/gas/arc/nps400-0.d      |   4 +-
 gas/testsuite/gas/arc/nps400-1.d      |   2 +-
 gas/testsuite/gas/arc/nps400-2.d      |   2 +-
 gas/testsuite/gas/arc/nps400-3.d      |   2 +-
 gas/testsuite/gas/arc/nps400-4.d      |   2 +-
 gas/testsuite/gas/arc/nps400-5.d      |   2 +-
 gas/testsuite/gas/arc/nps400-6.d      |   2 +-
 gas/testsuite/gas/arc/nps400-7.d      |   2 +-
 gas/testsuite/gas/arc/textinsn2op01.d |  36 ++--
 gas/testsuite/gas/arc/textinsn2op01.s |   2 +-
 gas/testsuite/gas/arc/textinsn3op.d   | 108 +++++------
 gas/testsuite/gas/arc/textinsn3op.s   |   2 +-
 include/ChangeLog                     |   9 +
 include/elf/arc.h                     |   1 -
 include/opcode/arc.h                  |   3 +-
 ld/testsuite/ld-arc/nps-1a.d          |   2 +-
 ld/testsuite/ld-arc/nps-1b.d          |   2 +-
 opcodes/ChangeLog                     |  17 ++
 opcodes/arc-dis.c                     |  12 +-
 opcodes/arc-nps400-tbl.h              | 356 +++++++++++++++++-----------------
 opcodes/arc-opc.c                     |  28 +--
 31 files changed, 450 insertions(+), 315 deletions(-)

-- 
2.5.5


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]