[v5,3/4] gdb: testsuite: Add or1k l.nop inscruction
Commit Message
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(+)
Comments
Stafford Horne <shorne@gmail.com> writes:
> gdb/testsuite/ChangeLog:
>
> 2016-05-11 Stafford Horne <shorne@gmail.com>
>
> * gdb.base/bp-permanent.c: Define nop of or1k.
The patch is good to me, but do you need to add or1k in
gdb.xml/tdesc-regs.exp?
@@ -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