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.
This commit is contained in:
Cooper Qu 2020-09-10 17:37:05 +08:00 committed by Lifang Xia
parent 79c8d443b1
commit 89ce8eab23
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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;