From: Cooper Qu <cooper.qu@linux.alibaba.com>
To: binutils@sourceware.org, lifang_xia@c-sky.com
Cc: Cooper Qu <cooper.qu@linux.alibaba.com>
Subject: [PATCH 3/3] CSKY: Enable extend lrw by default for CK802, CK803 and CK860.
Date: Thu, 10 Sep 2020 17:37:05 +0800 [thread overview]
Message-ID: <20200910093705.23303-1-cooper.qu@linux.alibaba.com> (raw)
In-Reply-To: <20200910093624.23184-1-cooper.qu@linux.alibaba.com>
gas/
* config/tc-csky.c (md_begin): Enable extend lrw by default for
CK802, CK803 and CK860.
---
gas/ChangeLog | 5 +++++
gas/config/tc-csky.c | 5 ++++-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 72b1fc886a6..a45e12e9142 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2020-09-10 Cooper Qu <cooper.qu@linux.alibaba.com>
+
+ * config/tc-csky.c (md_begin): Enable extend lrw by default for
+ CK802, CK803 and CK860.
+
2020-09-10 Cooper Qu <cooper.qu@linux.alibaba.com>
* config/tc-csky.c (struct csky_cpu_info): Add new members
diff --git a/gas/config/tc-csky.c b/gas/config/tc-csky.c
index cafadcc942f..3518b2a2fdb 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;
--
2.26.2
next prev parent reply other threads:[~2020-09-10 9:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-10 9:36 [PATCH 1/3] CSKY: Add new arches while refine the cpu option process Cooper Qu
2020-09-10 9:36 ` [PATCH 2/3] CSKY: Add L2Cache instructions for CK860 Cooper Qu
2020-09-10 9:37 ` Cooper Qu [this message]
2020-09-10 11:36 ` [PATCH 3/3] CSKY: Enable extend lrw by default for CK802, CK803 and CK860 Lifang Xia
2020-09-12 16:42 ` [PATCH 1/3] CSKY: Add new arches while refine the cpu option process H.J. Lu
2020-09-13 12:29 ` Cooper Qu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200910093705.23303-1-cooper.qu@linux.alibaba.com \
--to=cooper.qu@linux.alibaba.com \
--cc=binutils@sourceware.org \
--cc=lifang_xia@c-sky.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).