Change 7-byte NOP instruction for RX target, so that it only takes 1 cycle to excute.
authorNick Clifton <nickc@redhat.com>
Tue, 22 Sep 2015 16:32:28 +0000 (17:32 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 22 Sep 2015 16:32:28 +0000 (17:32 +0100)
* config/tc-rx.c (nop_7): Recode using MAX.

gas/ChangeLog
gas/config/tc-rx.c

index c0fb09661eeb484710855c39ee582e8eaa28e539..fe1ed7446ad0106c6acbd39f3e65f5c1faac4a37 100644 (file)
@@ -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
index e70295d7dc6d3e76d20666bb99b2702189b8bffa..4345d58e5867eed51993bd2408f62481cb20148b 100644 (file)
@@ -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
This page took 0.027755 seconds and 4 git commands to generate.