aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-csky.c
diff options
context:
space:
mode:
authorCooper Qu <cooper.qu@linux.alibaba.com>2020-09-10 17:37:05 +0800
committerLifang Xia <xlf194833_xia@alibaba-inc.com>2020-09-10 17:41:38 +0800
commit89ce8eab23ac49c8c990c1934d2dff84841990af (patch)
treea54b49ffc8112a6daf5004adeec5341e4abf1448 /gas/config/tc-csky.c
parent79c8d443b171a3458ac90defcb5cb3c3e8b1cf54 (diff)
downloadgdb-89ce8eab23ac49c8c990c1934d2dff84841990af.zip
gdb-89ce8eab23ac49c8c990c1934d2dff84841990af.tar.gz
gdb-89ce8eab23ac49c8c990c1934d2dff84841990af.tar.bz2
CSKY: Enable extend lrw by default for CK802, CK803 and CK860.
gas/ * config/tc-csky.c (md_begin): Enable extend lrw by default for CK802, CK803 and CK860.
Diffstat (limited to 'gas/config/tc-csky.c')
-rw-r--r--gas/config/tc-csky.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c
index cafadcc..3518b2a 100644
--- a/gas/config/tc-csky.c
+++ b/gas/config/tc-csky.c
@@ -1779,7 +1779,10 @@ md_begin (void)
if (do_extend_lrw == -1)
{
- if (IS_CSKY_ARCH_801 (mach_flag))
+ if ((mach_flag & CSKY_ARCH_MASK) == CSKY_ARCH_801
+ || (mach_flag & CSKY_ARCH_MASK) == CSKY_ARCH_802
+ || (mach_flag & CSKY_ARCH_MASK) == CSKY_ARCH_803
+ || (mach_flag & CSKY_ARCH_MASK) == CSKY_ARCH_860)
do_extend_lrw = 1;
else
do_extend_lrw = 0;