This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Change 7-byte NOP instruction for RX target, so that it only takes 1 cycle to excute.
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 22 Sep 2015 16:33:07 -0000
- Subject: [binutils-gdb] Change 7-byte NOP instruction for RX target, so that it only takes 1 cycle to excute.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e3ec6cc681835fcd1457aedbf5cea914915e89a8
commit e3ec6cc681835fcd1457aedbf5cea914915e89a8
Author: Nick Clifton <nickc@redhat.com>
Date: Tue Sep 22 17:32:28 2015 +0100
Change 7-byte NOP instruction for RX target, so that it only takes 1 cycle to excute.
* config/tc-rx.c (nop_7): Recode using MAX.
Diff:
---
gas/ChangeLog | 4 ++++
gas/config/tc-rx.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index c0fb096..fe1ed74 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2015-09-22 Nick Clifton <nickc@redhat.com>
+
+ * config/tc-rx.c (nop_7): Recode using MAX.
+
2015-09-05 Chen Gang <gang.chen.5i5j@gmail.com>
* config/tc-avr.c (md_section_align): Append UL for -1 to avoid
diff --git a/gas/config/tc-rx.c b/gas/config/tc-rx.c
index e70295d..4345d58 100644
--- a/gas/config/tc-rx.c
+++ b/gas/config/tc-rx.c
@@ -1263,8 +1263,8 @@ static unsigned char nop_4[] = { 0x76, 0x10, 0x01, 0x00 };
static unsigned char nop_5[] = { 0x77, 0x10, 0x01, 0x00, 0x00 };
/* MUL #1,R0 - 1 cycle */
static unsigned char nop_6[] = { 0x74, 0x10, 0x01, 0x00, 0x00, 0x00 };
- /* BRA.S .+7 - 1 cycle */
-static unsigned char nop_7[] = { 0x0F, 0x03, 0x03, 0x03, 0x03, 0x03, 0x03 };
+ /* MAX 0x80000000,R0 - 1 cycle */
+static unsigned char nop_7[] = { 0xFD, 0x70, 0x40, 0x00, 0x00, 0x00, 0x80 };
static unsigned char *nops[] = { NULL, nop_1, nop_2, nop_3, nop_4, nop_5, nop_6, nop_7 };
#define BIGGEST_NOP 7