aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCooper Qu <cooper.qu@linux.alibaba.com>2020-10-12 22:30:18 +0800
committerLifang Xia <xlf194833_xia@alibaba-inc.com>2020-10-26 16:20:10 +0800
commit9d1ccf22fd6a231dc45a334b09416eedf9f52e8d (patch)
treea3a4feb1fccaaab996bc4aaccc088ec4e09f415e /include
parent039dac293d5df5d933808aa5d946b80fd0a84794 (diff)
downloadbinutils-9d1ccf22fd6a231dc45a334b09416eedf9f52e8d.zip
binutils-9d1ccf22fd6a231dc45a334b09416eedf9f52e8d.tar.gz
binutils-9d1ccf22fd6a231dc45a334b09416eedf9f52e8d.tar.bz2
CSKY: Add version flag in eflag and fix bug in disassembling register.
gas/ * config/tc-csky.c (md_begin): Add version flag in eflag. include/ * opcode/csky.h (CSKY_VERSION_V1): Define, currently used. (CSKY_VERSION_V2): Define. (CSKY_VERSION_V3): Define. Change-Id: Iafe3a9ce6fe544880a225b9fae439275a828bb34
Diffstat (limited to 'include')
-rw-r--r--include/ChangeLog6
-rw-r--r--include/opcode/csky.h5
2 files changed, 11 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog
index b4ac311..2267cda 100644
--- a/include/ChangeLog
+++ b/include/ChangeLog
@@ -1,3 +1,9 @@
+2020-10-26 Cooper Qu <cooper.qu@linux.alibaba.com>
+
+ * opcode/csky.h (CSKY_VERSION_V1): New, currently used.
+ (CSKY_VERSION_V2): New.
+ (CSKY_VERSION_V3): New.
+
2020-10-21 Tom Tromey <tromey@adacore.com>
* ctf-api.h (_CTF_ERRORS): New macro.
diff --git a/include/opcode/csky.h b/include/opcode/csky.h
index 1ff9dfa..e368478 100644
--- a/include/opcode/csky.h
+++ b/include/opcode/csky.h
@@ -93,6 +93,11 @@
#define CSKY_ARCH_JAVA (1 << 8)
#define CSKY_ARCH_APS (1 << 7)
+/* eflag's Versions. */
+#define CSKY_VERSION_V1 (1 << 24)
+#define CSKY_VERSION_V2 (2 << 24)
+#define CSKY_VERSION_V3 (3 << 24)
+
#define IS_CSKY_V1(a) \
(((a) & CSKY_ABI_MASK) == CSKY_ABI_V1)
#define IS_CSKY_V2(a) \