aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorKuan-Lin Chen <kuanlinchentw@gmail.com>2014-09-10 09:46:32 +0800
committerKuan-Lin Chen <kuanlinchentw@gmail.com>2014-09-16 12:28:11 +0800
commit40c7a7cb74ee4a9ec0830d734198fcd0e99c3a37 (patch)
treeb28e7367173b15a3be3b1dd05dafa6e811f02f5a /binutils
parent5b636fed3a28c9237c187999490f8e58d54b2d83 (diff)
downloadgdb-40c7a7cb74ee4a9ec0830d734198fcd0e99c3a37.zip
gdb-40c7a7cb74ee4a9ec0830d734198fcd0e99c3a37.tar.gz
gdb-40c7a7cb74ee4a9ec0830d734198fcd0e99c3a37.tar.bz2
NDS32/opcodes: Add audio ISA extension and modify the disassemble implemnt.
First, add nds32 audio ISA extension including opcodes and registers. Second, redesign the disassemble implement. The original disassemble decode instruction opcode using switch-case. It is hard to synchronize when adding new instructions. Therefore, the new implement reuses nds32_opcodes to dump the instructions.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/readelf.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ea63218..c55382e 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2014-09-16 Kuan-Lin Chen <kuanlinchentw@gmail.com>
+
+ * readelf.c (decode_NDS32_machine_flags): Display ABI2 FP+.
+
2014-09-15 Andrew Bennett <andrew.bennett@imgtec.com>
Matthew Fortune <matthew.fortune@imgtec.com>
diff --git a/binutils/readelf.c b/binutils/readelf.c
index f7eaf7c..ef3a68d 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -2326,7 +2326,8 @@ decode_NDS32_machine_flags (unsigned e_flags, char buf[], size_t size)
"ABI v1", /* use r0 as return register */
"ABI v2", /* use r0 as return register and don't reserve 24 bytes for arguments */
"ABI v2fp", /* for FPU */
- "AABI"
+ "AABI",
+ "ABI2 FP+"
};
static const char *VER_STRINGS[] =
{
@@ -2357,6 +2358,7 @@ decode_NDS32_machine_flags (unsigned e_flags, char buf[], size_t size)
case E_NDS_ABI_V2:
case E_NDS_ABI_V2FP:
case E_NDS_ABI_AABI:
+ case E_NDS_ABI_V2FP_PLUS:
/* In case there are holes in the array. */
r += snprintf (buf + r, size - r, ", %s", ABI_STRINGS[abi >> EF_NDS_ABI_SHIFT]);
break;