Skip to content

Commit 4ebee8c

Browse files
Fuad Tabbawilldeacon
authored andcommitted
arm64/sysreg: Add missing system instruction definitions for FGT
Add the definitions of missing system instructions that are trappable by fine grain traps. The definitions are based on DDI0602 2023-09. Signed-off-by: Fuad Tabba <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 885c6d8 commit 4ebee8c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -645,6 +645,7 @@
645645
#define OP_AT_S1E0W sys_insn(AT_Op0, 0, AT_CRn, 8, 3)
646646
#define OP_AT_S1E1RP sys_insn(AT_Op0, 0, AT_CRn, 9, 0)
647647
#define OP_AT_S1E1WP sys_insn(AT_Op0, 0, AT_CRn, 9, 1)
648+
#define OP_AT_S1E1A sys_insn(AT_Op0, 0, AT_CRn, 9, 2)
648649
#define OP_AT_S1E2R sys_insn(AT_Op0, 4, AT_CRn, 8, 0)
649650
#define OP_AT_S1E2W sys_insn(AT_Op0, 4, AT_CRn, 8, 1)
650651
#define OP_AT_S12E1R sys_insn(AT_Op0, 4, AT_CRn, 8, 4)
@@ -781,10 +782,16 @@
781782
#define OP_TLBI_VMALLS12E1NXS sys_insn(1, 4, 9, 7, 6)
782783

783784
/* Misc instructions */
785+
#define OP_GCSPUSHX sys_insn(1, 0, 7, 7, 4)
786+
#define OP_GCSPOPCX sys_insn(1, 0, 7, 7, 5)
787+
#define OP_GCSPOPX sys_insn(1, 0, 7, 7, 6)
788+
#define OP_GCSPUSHM sys_insn(1, 3, 7, 7, 0)
789+
784790
#define OP_BRB_IALL sys_insn(1, 1, 7, 2, 4)
785791
#define OP_BRB_INJ sys_insn(1, 1, 7, 2, 5)
786792
#define OP_CFP_RCTX sys_insn(1, 3, 7, 3, 4)
787793
#define OP_DVP_RCTX sys_insn(1, 3, 7, 3, 5)
794+
#define OP_COSP_RCTX sys_insn(1, 3, 7, 3, 6)
788795
#define OP_CPP_RCTX sys_insn(1, 3, 7, 3, 7)
789796

790797
/* Common SCTLR_ELx flags. */

0 commit comments

Comments
 (0)