summaryrefslogtreecommitdiff
path: root/arch/openrisc/include/asm/insn-def.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2025-10-05 10:02:54 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2025-10-05 10:02:54 -0700
commit742adaa16db994ba1748465b95548e2f28aa18ca (patch)
tree77f1ac112398a95257d804c18a41a8f687d13a79 /arch/openrisc/include/asm/insn-def.h
parent21fbefc5886cc38cf7b57b28c35bd619efbce914 (diff)
parent8c30b0018f9d93391573e091960d257fd9de120a (diff)
Merge tag 'for-linus' of https://github.com/openrisc/linux
Pull OpenRISC updates from Stafford Horne: "I picked up one series from Chen Miao, our Google Summer of Code contributor, which adds OpenRISC support for static keys" * tag 'for-linus' of https://github.com/openrisc/linux: openrisc: Add jump label support openrisc: Regenerate defconfigs. openrisc: Add R_OR1K_32_PCREL relocation type module support openrisc: Add text patching API support
Diffstat (limited to 'arch/openrisc/include/asm/insn-def.h')
-rw-r--r--arch/openrisc/include/asm/insn-def.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/openrisc/include/asm/insn-def.h b/arch/openrisc/include/asm/insn-def.h
new file mode 100644
index 000000000000..1e0c028a5b95
--- /dev/null
+++ b/arch/openrisc/include/asm/insn-def.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+/*
+ * Copyright (C) 2025 Chen Miao
+ */
+
+#ifndef __ASM_OPENRISC_INSN_DEF_H
+#define __ASM_OPENRISC_INSN_DEF_H
+
+/* or1k instructions are always 32 bits. */
+#define OPENRISC_INSN_SIZE 4
+
+/* or1k nop instruction code */
+#define OPENRISC_INSN_NOP 0x15000000U
+
+#endif /* __ASM_OPENRISC_INSN_DEF_H */