This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v6 3/5] gdb: testsuite: Add or1k l.nop instruction
- From: Stafford Horne <shorne at gmail dot com>
- To: GDB patches <gdb-patches at sourceware dot org>
- Cc: Openrisc <openrisc at lists dot librecores dot org>, Stafford Horne <shorne at gmail dot com>
- Date: Mon, 24 Apr 2017 21:52:52 +0900
- Subject: [PATCH v6 3/5] gdb: testsuite: Add or1k l.nop instruction
- Authentication-results: sourceware.org; auth=none
- References: <cover.1493038197.git.shorne@gmail.com>
- References: <cover.1493038197.git.shorne@gmail.com>
The test case requires adding a nop instruction. For or1k the
instruction is `l.nop`. This change uses the correct operation.
gdb/testsuite/ChangeLog:
2016-05-11 Stafford Horne <shorne@gmail.com>
* gdb.base/bp-permanent.c: Define nop of or1k.
---
gdb/testsuite/gdb.base/bp-permanent.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/testsuite/gdb.base/bp-permanent.c b/gdb/testsuite/gdb.base/bp-permanent.c
index acd5be7..d42aafa 100644
--- a/gdb/testsuite/gdb.base/bp-permanent.c
+++ b/gdb/testsuite/gdb.base/bp-permanent.c
@@ -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
--
2.9.3