gdb: testsuite: Add or1k l.nop instruction
authorStafford Horne <shorne@gmail.com>
Fri, 8 Dec 2017 20:57:25 +0000 (05:57 +0900)
committerStafford Horne <shorne@gmail.com>
Tue, 12 Dec 2017 14:37:04 +0000 (23:37 +0900)
The test case requires adding a nop instruction.  For or1k the
instruction is `l.nop`. This change uses the correct operation.

gdb/testsuite/ChangeLog:

2017-12-12  Stafford Horne  <shorne@gmail.com>

* gdb.base/bp-permanent.c: Define nop of or1k.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/bp-permanent.c

index 28dfa14..f4dee9e 100644 (file)
@@ -1,3 +1,7 @@
+2017-12-12  Stafford Horne  <shorne@gmail.com>
+
+       * gdb.base/bp-permanent.c: Define nop of or1k.
+
 2017-12-11  Joel Brobecker  <brobecker@adacore.com>
 
        * gdb.ada/variant_record_packed_array.exp: Adapt test to accept
index acd5be7..d42aafa 100644 (file)
@@ -26,6 +26,8 @@
 
 #if defined(__s390__) || defined(__s390x__)
 #define NOP asm("nopr 0")
+#elif defined(__or1k__)
+#define NOP asm("l.nop")
 #else
 #define NOP asm("nop")
 #endif