Lines Matching +full:1 +full:- +full:7
1 /* SPDX-License-Identifier: GPL-2.0-only */
14 #include <linux/kasan-tags.h>
16 #include <asm/gpr-num.h>
22 * [20-19] : Op0
23 * [18-16] : Op1
24 * [15-12] : CRn
25 * [11-8] : CRm
26 * [7-5] : Op2
83 * As per Arm ARM for v8-A, Section "C.5.1.3 op0 == 0b00, architectural hints,
97 #define PSTATE_SSBS pstate_field(3, 1)
115 #define SB_BARRIER_INSN __SYS_BARRIER_INSN(0, 7, 31)
117 #define SYS_DC_ISW sys_insn(1, 0, 7, 6, 2)
118 #define SYS_DC_IGSW sys_insn(1, 0, 7, 6, 4)
119 #define SYS_DC_IGDSW sys_insn(1, 0, 7, 6, 6)
120 #define SYS_DC_CSW sys_insn(1, 0, 7, 10, 2)
121 #define SYS_DC_CGSW sys_insn(1, 0, 7, 10, 4)
122 #define SYS_DC_CGDSW sys_insn(1, 0, 7, 10, 6)
123 #define SYS_DC_CISW sys_insn(1, 0, 7, 14, 2)
124 #define SYS_DC_CIGSW sys_insn(1, 0, 7, 14, 4)
125 #define SYS_DC_CIGDSW sys_insn(1, 0, 7, 14, 6)
127 #define SYS_IC_IALLUIS sys_insn(1, 0, 7, 1, 0)
128 #define SYS_IC_IALLU sys_insn(1, 0, 7, 5, 0)
129 #define SYS_IC_IVAU sys_insn(1, 3, 7, 5, 1)
131 #define SYS_DC_IVAC sys_insn(1, 0, 7, 6, 1)
132 #define SYS_DC_IGVAC sys_insn(1, 0, 7, 6, 3)
133 #define SYS_DC_IGDVAC sys_insn(1, 0, 7, 6, 5)
135 #define SYS_DC_CVAC sys_insn(1, 3, 7, 10, 1)
136 #define SYS_DC_CGVAC sys_insn(1, 3, 7, 10, 3)
137 #define SYS_DC_CGDVAC sys_insn(1, 3, 7, 10, 5)
139 #define SYS_DC_CVAU sys_insn(1, 3, 7, 11, 1)
141 #define SYS_DC_CVAP sys_insn(1, 3, 7, 12, 1)
142 #define SYS_DC_CGVAP sys_insn(1, 3, 7, 12, 3)
143 #define SYS_DC_CGDVAP sys_insn(1, 3, 7, 12, 5)
145 #define SYS_DC_CVADP sys_insn(1, 3, 7, 13, 1)
146 #define SYS_DC_CGVADP sys_insn(1, 3, 7, 13, 3)
147 #define SYS_DC_CGDVADP sys_insn(1, 3, 7, 13, 5)
149 #define SYS_DC_CIVAC sys_insn(1, 3, 7, 14, 1)
150 #define SYS_DC_CIGVAC sys_insn(1, 3, 7, 14, 3)
151 #define SYS_DC_CIGDVAC sys_insn(1, 3, 7, 14, 5)
154 #define SYS_DC_ZVA sys_insn(1, 3, 7, 4, 1)
155 #define SYS_DC_GVA sys_insn(1, 3, 7, 4, 3)
156 #define SYS_DC_GZVA sys_insn(1, 3, 7, 4, 4)
164 #include "asm/sysreg-defs.h"
177 #define SYS_DBGWCRn_EL1(n) sys_reg(2, 0, 0, n, 7)
178 #define SYS_MDRAR_EL1 sys_reg(2, 0, 1, 0, 0)
180 #define SYS_OSLSR_EL1 sys_reg(2, 0, 1, 1, 4)
184 #define OSLSR_EL1_OSLK BIT(1)
186 #define SYS_OSDLR_EL1 sys_reg(2, 0, 1, 3, 4)
187 #define SYS_DBGPRCR_EL1 sys_reg(2, 0, 1, 4, 4)
188 #define SYS_DBGCLAIMSET_EL1 sys_reg(2, 0, 7, 8, 6)
189 #define SYS_DBGCLAIMCLR_EL1 sys_reg(2, 0, 7, 9, 6)
190 #define SYS_DBGAUTHSTATUS_EL1 sys_reg(2, 0, 7, 14, 6)
191 #define SYS_MDCCSR_EL0 sys_reg(2, 3, 0, 1, 0)
195 #define SYS_DBGVCR32_EL2 sys_reg(2, 4, 0, 7, 0)
197 #define SYS_BRBINF_EL1(n) sys_reg(2, 1, 8, (n & 15), (((n & 16) >> 2) | 0))
198 #define SYS_BRBINFINJ_EL1 sys_reg(2, 1, 9, 1, 0)
199 #define SYS_BRBSRC_EL1(n) sys_reg(2, 1, 8, (n & 15), (((n & 16) >> 2) | 1))
200 #define SYS_BRBSRCINJ_EL1 sys_reg(2, 1, 9, 1, 1)
201 #define SYS_BRBTGT_EL1(n) sys_reg(2, 1, 8, (n & 15), (((n & 16) >> 2) | 2))
202 #define SYS_BRBTGTINJ_EL1 sys_reg(2, 1, 9, 1, 2)
203 #define SYS_BRBTS_EL1 sys_reg(2, 1, 9, 0, 2)
205 #define SYS_BRBCR_EL1 sys_reg(2, 1, 9, 0, 0)
206 #define SYS_BRBFCR_EL1 sys_reg(2, 1, 9, 0, 1)
207 #define SYS_BRBIDR0_EL1 sys_reg(2, 1, 9, 2, 0)
209 #define SYS_TRCITECR_EL1 sys_reg(3, 0, 1, 2, 3)
210 #define SYS_TRCACATR(m) sys_reg(2, 1, 2, ((m & 7) << 1), (2 | (m >> 3)))
211 #define SYS_TRCACVR(m) sys_reg(2, 1, 2, ((m & 7) << 1), (0 | (m >> 3)))
212 #define SYS_TRCAUTHSTATUS sys_reg(2, 1, 7, 14, 6)
213 #define SYS_TRCAUXCTLR sys_reg(2, 1, 0, 6, 0)
214 #define SYS_TRCBBCTLR sys_reg(2, 1, 0, 15, 0)
215 #define SYS_TRCCCCTLR sys_reg(2, 1, 0, 14, 0)
216 #define SYS_TRCCIDCCTLR0 sys_reg(2, 1, 3, 0, 2)
217 #define SYS_TRCCIDCCTLR1 sys_reg(2, 1, 3, 1, 2)
218 #define SYS_TRCCIDCVR(m) sys_reg(2, 1, 3, ((m & 7) << 1), 0)
219 #define SYS_TRCCLAIMCLR sys_reg(2, 1, 7, 9, 6)
220 #define SYS_TRCCLAIMSET sys_reg(2, 1, 7, 8, 6)
221 #define SYS_TRCCNTCTLR(m) sys_reg(2, 1, 0, (4 | (m & 3)), 5)
222 #define SYS_TRCCNTRLDVR(m) sys_reg(2, 1, 0, (0 | (m & 3)), 5)
223 #define SYS_TRCCNTVR(m) sys_reg(2, 1, 0, (8 | (m & 3)), 5)
224 #define SYS_TRCCONFIGR sys_reg(2, 1, 0, 4, 0)
225 #define SYS_TRCDEVARCH sys_reg(2, 1, 7, 15, 6)
226 #define SYS_TRCDEVID sys_reg(2, 1, 7, 2, 7)
227 #define SYS_TRCEVENTCTL0R sys_reg(2, 1, 0, 8, 0)
228 #define SYS_TRCEVENTCTL1R sys_reg(2, 1, 0, 9, 0)
229 #define SYS_TRCEXTINSELR(m) sys_reg(2, 1, 0, (8 | (m & 3)), 4)
230 #define SYS_TRCIDR0 sys_reg(2, 1, 0, 8, 7)
231 #define SYS_TRCIDR10 sys_reg(2, 1, 0, 2, 6)
232 #define SYS_TRCIDR11 sys_reg(2, 1, 0, 3, 6)
233 #define SYS_TRCIDR12 sys_reg(2, 1, 0, 4, 6)
234 #define SYS_TRCIDR13 sys_reg(2, 1, 0, 5, 6)
235 #define SYS_TRCIDR1 sys_reg(2, 1, 0, 9, 7)
236 #define SYS_TRCIDR2 sys_reg(2, 1, 0, 10, 7)
237 #define SYS_TRCIDR3 sys_reg(2, 1, 0, 11, 7)
238 #define SYS_TRCIDR4 sys_reg(2, 1, 0, 12, 7)
239 #define SYS_TRCIDR5 sys_reg(2, 1, 0, 13, 7)
240 #define SYS_TRCIDR6 sys_reg(2, 1, 0, 14, 7)
241 #define SYS_TRCIDR7 sys_reg(2, 1, 0, 15, 7)
242 #define SYS_TRCIDR8 sys_reg(2, 1, 0, 0, 6)
243 #define SYS_TRCIDR9 sys_reg(2, 1, 0, 1, 6)
244 #define SYS_TRCIMSPEC(m) sys_reg(2, 1, 0, (m & 7), 7)
245 #define SYS_TRCITEEDCR sys_reg(2, 1, 0, 2, 1)
246 #define SYS_TRCOSLSR sys_reg(2, 1, 1, 1, 4)
247 #define SYS_TRCPRGCTLR sys_reg(2, 1, 0, 1, 0)
248 #define SYS_TRCQCTLR sys_reg(2, 1, 0, 1, 1)
249 #define SYS_TRCRSCTLR(m) sys_reg(2, 1, 1, (m & 15), (0 | (m >> 4)))
250 #define SYS_TRCRSR sys_reg(2, 1, 0, 10, 0)
251 #define SYS_TRCSEQEVR(m) sys_reg(2, 1, 0, (m & 3), 4)
252 #define SYS_TRCSEQRSTEVR sys_reg(2, 1, 0, 6, 4)
253 #define SYS_TRCSEQSTR sys_reg(2, 1, 0, 7, 4)
254 #define SYS_TRCSSCCR(m) sys_reg(2, 1, 1, (m & 7), 2)
255 #define SYS_TRCSSCSR(m) sys_reg(2, 1, 1, (8 | (m & 7)), 2)
256 #define SYS_TRCSSPCICR(m) sys_reg(2, 1, 1, (m & 7), 3)
257 #define SYS_TRCSTALLCTLR sys_reg(2, 1, 0, 11, 0)
258 #define SYS_TRCSTATR sys_reg(2, 1, 0, 3, 0)
259 #define SYS_TRCSYNCPR sys_reg(2, 1, 0, 13, 0)
260 #define SYS_TRCTRACEIDR sys_reg(2, 1, 0, 0, 1)
261 #define SYS_TRCTSCTLR sys_reg(2, 1, 0, 12, 0)
262 #define SYS_TRCVICTLR sys_reg(2, 1, 0, 0, 2)
263 #define SYS_TRCVIIECTLR sys_reg(2, 1, 0, 1, 2)
264 #define SYS_TRCVIPCSSCTLR sys_reg(2, 1, 0, 3, 2)
265 #define SYS_TRCVISSCTLR sys_reg(2, 1, 0, 2, 2)
266 #define SYS_TRCVMIDCCTLR0 sys_reg(2, 1, 3, 2, 2)
267 #define SYS_TRCVMIDCCTLR1 sys_reg(2, 1, 3, 3, 2)
268 #define SYS_TRCVMIDCVR(m) sys_reg(2, 1, 3, ((m & 7) << 1), 1)
271 #define SYS_TRCOSLAR sys_reg(2, 1, 1, 0, 4)
277 #define SYS_ACTLR_EL1 sys_reg(3, 0, 1, 0, 1)
278 #define SYS_RGSR_EL1 sys_reg(3, 0, 1, 0, 5)
279 #define SYS_GCR_EL1 sys_reg(3, 0, 1, 0, 6)
281 #define SYS_TRFCR_EL1 sys_reg(3, 0, 1, 2, 1)
285 #define SYS_APIAKEYLO_EL1 sys_reg(3, 0, 2, 1, 0)
286 #define SYS_APIAKEYHI_EL1 sys_reg(3, 0, 2, 1, 1)
287 #define SYS_APIBKEYLO_EL1 sys_reg(3, 0, 2, 1, 2)
288 #define SYS_APIBKEYHI_EL1 sys_reg(3, 0, 2, 1, 3)
291 #define SYS_APDAKEYHI_EL1 sys_reg(3, 0, 2, 2, 1)
296 #define SYS_APGAKEYHI_EL1 sys_reg(3, 0, 2, 3, 1)
299 #define SYS_ELR_EL1 sys_reg(3, 0, 4, 0, 1)
303 #define SYS_AFSR0_EL1 sys_reg(3, 0, 5, 1, 0)
304 #define SYS_AFSR1_EL1 sys_reg(3, 0, 5, 1, 1)
308 #define SYS_ERRSELR_EL1 sys_reg(3, 0, 5, 3, 1)
310 #define SYS_ERXCTLR_EL1 sys_reg(3, 0, 5, 4, 1)
317 #define SYS_ERXMISC1_EL1 sys_reg(3, 0, 5, 5, 1)
321 #define SYS_TFSRE0_EL1 sys_reg(3, 0, 5, 6, 1)
323 #define SYS_PAR_EL1 sys_reg(3, 0, 7, 4, 0)
326 #define SYS_PAR_EL1_FST GENMASK(6, 1)
351 #define SYS_PMINTENSET_EL1 sys_reg(3, 0, 9, 14, 1)
360 #define SYS_DISR_EL1 sys_reg(3, 0, 12, 1, 1)
363 #define SYS_ICC_EOIR0_EL1 sys_reg(3, 0, 12, 8, 1)
368 #define SYS_ICC_AP0R1_EL1 SYS_ICC_AP0Rn_EL1(1)
373 #define SYS_ICC_AP1R1_EL1 SYS_ICC_AP1Rn_EL1(1)
376 #define SYS_ICC_DIR_EL1 sys_reg(3, 0, 12, 11, 1)
380 #define SYS_ICC_SGI0R_EL1 sys_reg(3, 0, 12, 11, 7)
382 #define SYS_ICC_EOIR1_EL1 sys_reg(3, 0, 12, 12, 1)
388 #define SYS_ICC_IGRPEN1_EL1 sys_reg(3, 0, 12, 12, 7)
392 #define SYS_CNTKCTL_EL1 sys_reg(3, 0, 14, 1, 0)
394 #define SYS_AIDR_EL1 sys_reg(3, 1, 0, 0, 7)
397 #define SYS_RNDRRS_EL0 sys_reg(3, 3, 2, 4, 1)
400 #define SYS_PMCNTENSET_EL0 sys_reg(3, 3, 9, 12, 1)
406 #define SYS_PMCEID1_EL0 sys_reg(3, 3, 9, 12, 7)
408 #define SYS_PMXEVTYPER_EL0 sys_reg(3, 3, 9, 13, 1)
417 #define SYS_SCXTNUM_EL0 sys_reg(3, 3, 13, 0, 7)
422 #define SYS_AMCFGR_EL0 SYS_AM_EL0(2, 1)
428 #define SYS_AMCNTENSET1_EL0 SYS_AM_EL0(3, 1)
435 * n: 0-15
437 * Group 1 of activity monitors (auxiliary):
441 * n: 0-15
444 #define SYS_AMEVCNTR0_EL0(n) SYS_AM_EL0(4 + ((n) >> 3), (n) & 7)
445 #define SYS_AMEVTYPER0_EL0(n) SYS_AM_EL0(6 + ((n) >> 3), (n) & 7)
446 #define SYS_AMEVCNTR1_EL0(n) SYS_AM_EL0(12 + ((n) >> 3), (n) & 7)
447 #define SYS_AMEVTYPER1_EL0(n) SYS_AM_EL0(14 + ((n) >> 3), (n) & 7)
451 #define SYS_AMEVCNTR0_CONST_EL0 SYS_AMEVCNTR0_EL0(1)
457 #define SYS_CNTPCT_EL0 sys_reg(3, 3, 14, 0, 1)
462 #define SYS_CNTP_CTL_EL0 sys_reg(3, 3, 14, 2, 1)
465 #define SYS_CNTV_CTL_EL0 sys_reg(3, 3, 14, 3, 1)
469 #define SYS_AARCH32_CNTP_CTL sys_reg(0, 0, 14, 2, 1)
480 #define SYS_PMCCFILTR_EL0 sys_reg(3, 3, 14, 15, 7)
485 #define SYS_SCTLR_EL2 sys_reg(3, 4, 1, 0, 0)
486 #define SYS_ACTLR_EL2 sys_reg(3, 4, 1, 0, 1)
487 #define SYS_HCR_EL2 sys_reg(3, 4, 1, 1, 0)
488 #define SYS_MDCR_EL2 sys_reg(3, 4, 1, 1, 1)
489 #define SYS_CPTR_EL2 sys_reg(3, 4, 1, 1, 2)
490 #define SYS_HSTR_EL2 sys_reg(3, 4, 1, 1, 3)
491 #define SYS_HACR_EL2 sys_reg(3, 4, 1, 1, 7)
494 #define SYS_TTBR1_EL2 sys_reg(3, 4, 2, 0, 1)
496 #define SYS_VTTBR_EL2 sys_reg(3, 4, 2, 1, 0)
497 #define SYS_VTCR_EL2 sys_reg(3, 4, 2, 1, 2)
499 #define SYS_TRFCR_EL2 sys_reg(3, 4, 1, 2, 1)
500 #define SYS_HAFGRTR_EL2 sys_reg(3, 4, 3, 1, 6)
502 #define SYS_ELR_EL2 sys_reg(3, 4, 4, 0, 1)
503 #define SYS_SP_EL1 sys_reg(3, 4, 4, 1, 0)
504 #define SYS_IFSR32_EL2 sys_reg(3, 4, 5, 0, 1)
505 #define SYS_AFSR0_EL2 sys_reg(3, 4, 5, 1, 0)
506 #define SYS_AFSR1_EL2 sys_reg(3, 4, 5, 1, 1)
519 #define SYS_RVBAR_EL2 sys_reg(3, 4, 12, 0, 1)
521 #define SYS_VDISR_EL2 sys_reg(3, 4, 12, 1, 1)
524 #define SYS_ICH_AP0R1_EL2 __SYS__AP0Rx_EL2(1)
530 #define SYS_ICH_AP1R1_EL2 __SYS__AP1Rx_EL2(1)
537 #define SYS_ICH_VTR_EL2 sys_reg(3, 4, 12, 11, 1)
541 #define SYS_ICH_VMCR_EL2 sys_reg(3, 4, 12, 11, 7)
545 #define SYS_ICH_LR1_EL2 __SYS__LR0_EL2(1)
551 #define SYS_ICH_LR7_EL2 __SYS__LR0_EL2(7)
555 #define SYS_ICH_LR9_EL2 __SYS__LR8_EL2(1)
561 #define SYS_ICH_LR15_EL2 __SYS__LR8_EL2(7)
563 #define SYS_CONTEXTIDR_EL2 sys_reg(3, 4, 13, 0, 1)
567 #define SYS_CNTHCTL_EL2 sys_reg(3, 4, 14, 1, 0)
569 /* VHE encodings for architectural EL0/1 system registers */
570 #define SYS_SCTLR_EL12 sys_reg(3, 5, 1, 0, 0)
572 #define SYS_TTBR1_EL12 sys_reg(3, 5, 2, 0, 1)
575 #define SYS_ELR_EL12 sys_reg(3, 5, 4, 0, 1)
576 #define SYS_AFSR0_EL12 sys_reg(3, 5, 5, 1, 0)
577 #define SYS_AFSR1_EL12 sys_reg(3, 5, 5, 1, 1)
583 #define SYS_CNTKCTL_EL12 sys_reg(3, 5, 14, 1, 0)
585 #define SYS_CNTP_CTL_EL02 sys_reg(3, 5, 14, 2, 1)
588 #define SYS_CNTV_CTL_EL02 sys_reg(3, 5, 14, 3, 1)
591 #define SYS_SP_EL2 sys_reg(3, 6, 4, 1, 0)
594 #define AT_Op0 1
595 #define AT_CRn 7
598 #define OP_AT_S1E1W sys_insn(AT_Op0, 0, AT_CRn, 8, 1)
602 #define OP_AT_S1E1WP sys_insn(AT_Op0, 0, AT_CRn, 9, 1)
604 #define OP_AT_S1E2W sys_insn(AT_Op0, 4, AT_CRn, 8, 1)
608 #define OP_AT_S12E0W sys_insn(AT_Op0, 4, AT_CRn, 8, 7)
611 #define OP_TLBI_VMALLE1OS sys_insn(1, 0, 8, 1, 0)
612 #define OP_TLBI_VAE1OS sys_insn(1, 0, 8, 1, 1)
613 #define OP_TLBI_ASIDE1OS sys_insn(1, 0, 8, 1, 2)
614 #define OP_TLBI_VAAE1OS sys_insn(1, 0, 8, 1, 3)
615 #define OP_TLBI_VALE1OS sys_insn(1, 0, 8, 1, 5)
616 #define OP_TLBI_VAALE1OS sys_insn(1, 0, 8, 1, 7)
617 #define OP_TLBI_RVAE1IS sys_insn(1, 0, 8, 2, 1)
618 #define OP_TLBI_RVAAE1IS sys_insn(1, 0, 8, 2, 3)
619 #define OP_TLBI_RVALE1IS sys_insn(1, 0, 8, 2, 5)
620 #define OP_TLBI_RVAALE1IS sys_insn(1, 0, 8, 2, 7)
621 #define OP_TLBI_VMALLE1IS sys_insn(1, 0, 8, 3, 0)
622 #define OP_TLBI_VAE1IS sys_insn(1, 0, 8, 3, 1)
623 #define OP_TLBI_ASIDE1IS sys_insn(1, 0, 8, 3, 2)
624 #define OP_TLBI_VAAE1IS sys_insn(1, 0, 8, 3, 3)
625 #define OP_TLBI_VALE1IS sys_insn(1, 0, 8, 3, 5)
626 #define OP_TLBI_VAALE1IS sys_insn(1, 0, 8, 3, 7)
627 #define OP_TLBI_RVAE1OS sys_insn(1, 0, 8, 5, 1)
628 #define OP_TLBI_RVAAE1OS sys_insn(1, 0, 8, 5, 3)
629 #define OP_TLBI_RVALE1OS sys_insn(1, 0, 8, 5, 5)
630 #define OP_TLBI_RVAALE1OS sys_insn(1, 0, 8, 5, 7)
631 #define OP_TLBI_RVAE1 sys_insn(1, 0, 8, 6, 1)
632 #define OP_TLBI_RVAAE1 sys_insn(1, 0, 8, 6, 3)
633 #define OP_TLBI_RVALE1 sys_insn(1, 0, 8, 6, 5)
634 #define OP_TLBI_RVAALE1 sys_insn(1, 0, 8, 6, 7)
635 #define OP_TLBI_VMALLE1 sys_insn(1, 0, 8, 7, 0)
636 #define OP_TLBI_VAE1 sys_insn(1, 0, 8, 7, 1)
637 #define OP_TLBI_ASIDE1 sys_insn(1, 0, 8, 7, 2)
638 #define OP_TLBI_VAAE1 sys_insn(1, 0, 8, 7, 3)
639 #define OP_TLBI_VALE1 sys_insn(1, 0, 8, 7, 5)
640 #define OP_TLBI_VAALE1 sys_insn(1, 0, 8, 7, 7)
641 #define OP_TLBI_VMALLE1OSNXS sys_insn(1, 0, 9, 1, 0)
642 #define OP_TLBI_VAE1OSNXS sys_insn(1, 0, 9, 1, 1)
643 #define OP_TLBI_ASIDE1OSNXS sys_insn(1, 0, 9, 1, 2)
644 #define OP_TLBI_VAAE1OSNXS sys_insn(1, 0, 9, 1, 3)
645 #define OP_TLBI_VALE1OSNXS sys_insn(1, 0, 9, 1, 5)
646 #define OP_TLBI_VAALE1OSNXS sys_insn(1, 0, 9, 1, 7)
647 #define OP_TLBI_RVAE1ISNXS sys_insn(1, 0, 9, 2, 1)
648 #define OP_TLBI_RVAAE1ISNXS sys_insn(1, 0, 9, 2, 3)
649 #define OP_TLBI_RVALE1ISNXS sys_insn(1, 0, 9, 2, 5)
650 #define OP_TLBI_RVAALE1ISNXS sys_insn(1, 0, 9, 2, 7)
651 #define OP_TLBI_VMALLE1ISNXS sys_insn(1, 0, 9, 3, 0)
652 #define OP_TLBI_VAE1ISNXS sys_insn(1, 0, 9, 3, 1)
653 #define OP_TLBI_ASIDE1ISNXS sys_insn(1, 0, 9, 3, 2)
654 #define OP_TLBI_VAAE1ISNXS sys_insn(1, 0, 9, 3, 3)
655 #define OP_TLBI_VALE1ISNXS sys_insn(1, 0, 9, 3, 5)
656 #define OP_TLBI_VAALE1ISNXS sys_insn(1, 0, 9, 3, 7)
657 #define OP_TLBI_RVAE1OSNXS sys_insn(1, 0, 9, 5, 1)
658 #define OP_TLBI_RVAAE1OSNXS sys_insn(1, 0, 9, 5, 3)
659 #define OP_TLBI_RVALE1OSNXS sys_insn(1, 0, 9, 5, 5)
660 #define OP_TLBI_RVAALE1OSNXS sys_insn(1, 0, 9, 5, 7)
661 #define OP_TLBI_RVAE1NXS sys_insn(1, 0, 9, 6, 1)
662 #define OP_TLBI_RVAAE1NXS sys_insn(1, 0, 9, 6, 3)
663 #define OP_TLBI_RVALE1NXS sys_insn(1, 0, 9, 6, 5)
664 #define OP_TLBI_RVAALE1NXS sys_insn(1, 0, 9, 6, 7)
665 #define OP_TLBI_VMALLE1NXS sys_insn(1, 0, 9, 7, 0)
666 #define OP_TLBI_VAE1NXS sys_insn(1, 0, 9, 7, 1)
667 #define OP_TLBI_ASIDE1NXS sys_insn(1, 0, 9, 7, 2)
668 #define OP_TLBI_VAAE1NXS sys_insn(1, 0, 9, 7, 3)
669 #define OP_TLBI_VALE1NXS sys_insn(1, 0, 9, 7, 5)
670 #define OP_TLBI_VAALE1NXS sys_insn(1, 0, 9, 7, 7)
671 #define OP_TLBI_IPAS2E1IS sys_insn(1, 4, 8, 0, 1)
672 #define OP_TLBI_RIPAS2E1IS sys_insn(1, 4, 8, 0, 2)
673 #define OP_TLBI_IPAS2LE1IS sys_insn(1, 4, 8, 0, 5)
674 #define OP_TLBI_RIPAS2LE1IS sys_insn(1, 4, 8, 0, 6)
675 #define OP_TLBI_ALLE2OS sys_insn(1, 4, 8, 1, 0)
676 #define OP_TLBI_VAE2OS sys_insn(1, 4, 8, 1, 1)
677 #define OP_TLBI_ALLE1OS sys_insn(1, 4, 8, 1, 4)
678 #define OP_TLBI_VALE2OS sys_insn(1, 4, 8, 1, 5)
679 #define OP_TLBI_VMALLS12E1OS sys_insn(1, 4, 8, 1, 6)
680 #define OP_TLBI_RVAE2IS sys_insn(1, 4, 8, 2, 1)
681 #define OP_TLBI_RVALE2IS sys_insn(1, 4, 8, 2, 5)
682 #define OP_TLBI_ALLE2IS sys_insn(1, 4, 8, 3, 0)
683 #define OP_TLBI_VAE2IS sys_insn(1, 4, 8, 3, 1)
684 #define OP_TLBI_ALLE1IS sys_insn(1, 4, 8, 3, 4)
685 #define OP_TLBI_VALE2IS sys_insn(1, 4, 8, 3, 5)
686 #define OP_TLBI_VMALLS12E1IS sys_insn(1, 4, 8, 3, 6)
687 #define OP_TLBI_IPAS2E1OS sys_insn(1, 4, 8, 4, 0)
688 #define OP_TLBI_IPAS2E1 sys_insn(1, 4, 8, 4, 1)
689 #define OP_TLBI_RIPAS2E1 sys_insn(1, 4, 8, 4, 2)
690 #define OP_TLBI_RIPAS2E1OS sys_insn(1, 4, 8, 4, 3)
691 #define OP_TLBI_IPAS2LE1OS sys_insn(1, 4, 8, 4, 4)
692 #define OP_TLBI_IPAS2LE1 sys_insn(1, 4, 8, 4, 5)
693 #define OP_TLBI_RIPAS2LE1 sys_insn(1, 4, 8, 4, 6)
694 #define OP_TLBI_RIPAS2LE1OS sys_insn(1, 4, 8, 4, 7)
695 #define OP_TLBI_RVAE2OS sys_insn(1, 4, 8, 5, 1)
696 #define OP_TLBI_RVALE2OS sys_insn(1, 4, 8, 5, 5)
697 #define OP_TLBI_RVAE2 sys_insn(1, 4, 8, 6, 1)
698 #define OP_TLBI_RVALE2 sys_insn(1, 4, 8, 6, 5)
699 #define OP_TLBI_ALLE2 sys_insn(1, 4, 8, 7, 0)
700 #define OP_TLBI_VAE2 sys_insn(1, 4, 8, 7, 1)
701 #define OP_TLBI_ALLE1 sys_insn(1, 4, 8, 7, 4)
702 #define OP_TLBI_VALE2 sys_insn(1, 4, 8, 7, 5)
703 #define OP_TLBI_VMALLS12E1 sys_insn(1, 4, 8, 7, 6)
704 #define OP_TLBI_IPAS2E1ISNXS sys_insn(1, 4, 9, 0, 1)
705 #define OP_TLBI_RIPAS2E1ISNXS sys_insn(1, 4, 9, 0, 2)
706 #define OP_TLBI_IPAS2LE1ISNXS sys_insn(1, 4, 9, 0, 5)
707 #define OP_TLBI_RIPAS2LE1ISNXS sys_insn(1, 4, 9, 0, 6)
708 #define OP_TLBI_ALLE2OSNXS sys_insn(1, 4, 9, 1, 0)
709 #define OP_TLBI_VAE2OSNXS sys_insn(1, 4, 9, 1, 1)
710 #define OP_TLBI_ALLE1OSNXS sys_insn(1, 4, 9, 1, 4)
711 #define OP_TLBI_VALE2OSNXS sys_insn(1, 4, 9, 1, 5)
712 #define OP_TLBI_VMALLS12E1OSNXS sys_insn(1, 4, 9, 1, 6)
713 #define OP_TLBI_RVAE2ISNXS sys_insn(1, 4, 9, 2, 1)
714 #define OP_TLBI_RVALE2ISNXS sys_insn(1, 4, 9, 2, 5)
715 #define OP_TLBI_ALLE2ISNXS sys_insn(1, 4, 9, 3, 0)
716 #define OP_TLBI_VAE2ISNXS sys_insn(1, 4, 9, 3, 1)
717 #define OP_TLBI_ALLE1ISNXS sys_insn(1, 4, 9, 3, 4)
718 #define OP_TLBI_VALE2ISNXS sys_insn(1, 4, 9, 3, 5)
719 #define OP_TLBI_VMALLS12E1ISNXS sys_insn(1, 4, 9, 3, 6)
720 #define OP_TLBI_IPAS2E1OSNXS sys_insn(1, 4, 9, 4, 0)
721 #define OP_TLBI_IPAS2E1NXS sys_insn(1, 4, 9, 4, 1)
722 #define OP_TLBI_RIPAS2E1NXS sys_insn(1, 4, 9, 4, 2)
723 #define OP_TLBI_RIPAS2E1OSNXS sys_insn(1, 4, 9, 4, 3)
724 #define OP_TLBI_IPAS2LE1OSNXS sys_insn(1, 4, 9, 4, 4)
725 #define OP_TLBI_IPAS2LE1NXS sys_insn(1, 4, 9, 4, 5)
726 #define OP_TLBI_RIPAS2LE1NXS sys_insn(1, 4, 9, 4, 6)
727 #define OP_TLBI_RIPAS2LE1OSNXS sys_insn(1, 4, 9, 4, 7)
728 #define OP_TLBI_RVAE2OSNXS sys_insn(1, 4, 9, 5, 1)
729 #define OP_TLBI_RVALE2OSNXS sys_insn(1, 4, 9, 5, 5)
730 #define OP_TLBI_RVAE2NXS sys_insn(1, 4, 9, 6, 1)
731 #define OP_TLBI_RVALE2NXS sys_insn(1, 4, 9, 6, 5)
732 #define OP_TLBI_ALLE2NXS sys_insn(1, 4, 9, 7, 0)
733 #define OP_TLBI_VAE2NXS sys_insn(1, 4, 9, 7, 1)
734 #define OP_TLBI_ALLE1NXS sys_insn(1, 4, 9, 7, 4)
735 #define OP_TLBI_VALE2NXS sys_insn(1, 4, 9, 7, 5)
736 #define OP_TLBI_VMALLS12E1NXS sys_insn(1, 4, 9, 7, 6)
739 #define OP_BRB_IALL sys_insn(1, 1, 7, 2, 4)
740 #define OP_BRB_INJ sys_insn(1, 1, 7, 2, 5)
741 #define OP_CFP_RCTX sys_insn(1, 3, 7, 3, 4)
742 #define OP_DVP_RCTX sys_insn(1, 3, 7, 3, 5)
743 #define OP_CPP_RCTX sys_insn(1, 3, 7, 3, 7)
769 #define SCTLR_ELx_A (BIT(1))
881 * only uses tags in the range 0xF0-0xFF, which we map to MTE tags 0x0-0xF.
900 #define SYS_TFSR_EL1_TF1_SHIFT 1
901 #define SYS_TFSR_EL1_TF0 (UL(1) << SYS_TFSR_EL1_TF0_SHIFT)
902 #define SYS_TFSR_EL1_TF1 (UL(1) << SYS_TFSR_EL1_TF1_SHIFT)
913 #define TRFCR_ELx_ExTRE BIT(1)
918 #define ICH_MISR_EOI (1 << 0)
919 #define ICH_MISR_U (1 << 1)
922 #define ICH_LR_VIRTUAL_ID_MASK ((1ULL << 32) - 1)
924 #define ICH_LR_EOI (1ULL << 41)
925 #define ICH_LR_GROUP (1ULL << 60)
926 #define ICH_LR_HW (1ULL << 61)
928 #define ICH_LR_PENDING_BIT (1ULL << 62)
929 #define ICH_LR_ACTIVE_BIT (1ULL << 63)
936 #define ICH_HCR_EN (1 << 0)
937 #define ICH_HCR_UIE (1 << 1)
938 #define ICH_HCR_NPIE (1 << 3)
939 #define ICH_HCR_TC (1 << 10)
940 #define ICH_HCR_TALL0 (1 << 11)
941 #define ICH_HCR_TALL1 (1 << 12)
942 #define ICH_HCR_TDIR (1 << 14)
948 #define ICH_VMCR_ACK_CTL_MASK (1 << ICH_VMCR_ACK_CTL_SHIFT)
950 #define ICH_VMCR_FIQ_EN_MASK (1 << ICH_VMCR_FIQ_EN_SHIFT)
952 #define ICH_VMCR_CBPR_MASK (1 << ICH_VMCR_CBPR_SHIFT)
954 #define ICH_VMCR_EOIM_MASK (1 << ICH_VMCR_EOIM_SHIFT)
956 #define ICH_VMCR_BPR1_MASK (7 << ICH_VMCR_BPR1_SHIFT)
958 #define ICH_VMCR_BPR0_MASK (7 << ICH_VMCR_BPR0_SHIFT)
962 #define ICH_VMCR_ENG0_MASK (1 << ICH_VMCR_ENG0_SHIFT)
963 #define ICH_VMCR_ENG1_SHIFT 1
964 #define ICH_VMCR_ENG1_MASK (1 << ICH_VMCR_ENG1_SHIFT)
968 #define ICH_VTR_PRI_BITS_MASK (7 << ICH_VTR_PRI_BITS_SHIFT)
970 #define ICH_VTR_ID_BITS_MASK (7 << ICH_VTR_ID_BITS_SHIFT)
972 #define ICH_VTR_SEIS_MASK (1 << ICH_VTR_SEIS_SHIFT)
974 #define ICH_VTR_A3V_MASK (1 << ICH_VTR_A3V_SHIFT)
976 #define ICH_VTR_TDS_MASK (1 << ICH_VTR_TDS_SHIFT)
1090 * set mask are set. Other bits are left as-is.