summaryrefslogtreecommitdiffstats
path: root/arch/riscv/include/asm/insn-def.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/riscv/include/asm/insn-def.h')
-rw-r--r--arch/riscv/include/asm/insn-def.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/riscv/include/asm/insn-def.h b/arch/riscv/include/asm/insn-def.h
index e27179b26086..71060a2f838e 100644
--- a/arch/riscv/include/asm/insn-def.h
+++ b/arch/riscv/include/asm/insn-def.h
@@ -196,4 +196,11 @@
INSN_I(OPCODE_MISC_MEM, FUNC3(2), __RD(0), \
RS1(base), SIMM12(4))
+#define RISCV_PAUSE ".4byte 0x100000f"
+#define ZAWRS_WRS_NTO ".4byte 0x00d00073"
+#define ZAWRS_WRS_STO ".4byte 0x01d00073"
+#define RISCV_NOP4 ".4byte 0x00000013"
+
+#define RISCV_INSN_NOP4 _AC(0x00000013, U)
+
#endif /* __ASM_INSN_DEF_H */