@@ -716,6 +716,18 @@ config RISCV_ISA_ZACAS
If you don't know what to do here, say Y.
+config RISCV_MIPS_P8700_PAUSE_OPCODE_FIX
+ bool "Fix the PAUSE Opcode for MIPS P8700"
+ default n
+ help
+ The RISCV MIPS P8700 uses a different opcode for PAUSE.
+ It is a 'hint' encoding of the SLLI instruction,
+ with rd=0, rs1=0 and imm=5. It will behave as a NOP
+ instruction if no additional behavior beyond that of
+ SLLI is implemented.
+
+ If you are not using the P8700 processor, say n.
+
config TOOLCHAIN_HAS_ZBB
bool
default y
@@ -196,7 +196,12 @@
INSN_I(OPCODE_MISC_MEM, FUNC3(2), __RD(0), \
RS1(base), SIMM12(4))
+#ifndef CONFIG_RISCV_MIPS_P8700_PAUSE_OPCODE_FIX
#define RISCV_PAUSE ".4byte 0x100000f"
+#else
+#define RISCV_PAUSE ".4byte 0x00501013"
+#endif
+
#define ZAWRS_WRS_NTO ".4byte 0x00d00073"
#define ZAWRS_WRS_STO ".4byte 0x01d00073"