aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-05-27 04:52:45 -0400
committerTrevor Saunders <tbsaunde+binutils@tbsaunde.org>2016-06-29 07:24:18 -0400
commit042c94de565ae62640c064f1cb33d28484aeb9d3 (patch)
tree8222b2ef71353fa500eb4c500b49a453615087a2
parenta405c2281ad29b5c7f9f2a4d58b7cfef2b74ba99 (diff)
downloadgdb-042c94de565ae62640c064f1cb33d28484aeb9d3.zip
gdb-042c94de565ae62640c064f1cb33d28484aeb9d3.tar.gz
gdb-042c94de565ae62640c064f1cb33d28484aeb9d3.tar.bz2
sparc: make SPARC_OPCODE_ARCH_MAX part of its enum
include/ChangeLog: 2016-06-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org> * opcode/sparc.h (enum sparc_opcode_arch_val): Move SPARC_OPCODE_ARCH_MAX into the enum.
-rw-r--r--include/ChangeLog5
-rw-r--r--include/opcode/sparc.h3
2 files changed, 6 insertions, 2 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index e5a80b9..ea82b86 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,8 @@
+2016-06-29 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
+
+ * opcode/sparc.h (enum sparc_opcode_arch_val): Move
+ SPARC_OPCODE_ARCH_MAX into the enum.
+
2016-06-28 Richard Sandiford <richard.sandiford@arm.com>
* opcode/aarch64.h (aarch64_opnd_info): Change index fields to int64_t.
diff --git a/include/opcode/sparc.h b/include/opcode/sparc.h
index 57225b6..7e44408 100644
--- a/include/opcode/sparc.h
+++ b/include/opcode/sparc.h
@@ -58,11 +58,10 @@ enum sparc_opcode_arch_val
SPARC_OPCODE_ARCH_V9V, /* V9 with OSA2011 and T4 additions, integer
multiply and Fujitsu fp multiply-add. */
SPARC_OPCODE_ARCH_V9M, /* V9 with OSA2015 and M7 additions. */
+ SPARC_OPCODE_ARCH_MAX = SPARC_OPCODE_ARCH_V9M,
SPARC_OPCODE_ARCH_BAD /* Error return from sparc_opcode_lookup_arch. */
};
-/* The highest architecture in the table. */
-#define SPARC_OPCODE_ARCH_MAX (SPARC_OPCODE_ARCH_BAD - 1)
/* Given an enum sparc_opcode_arch_val, return the bitmask to use in
insn encoding/decoding. */