Lines Matching +full:xlen +full:- +full:1

1 /* SPDX-License-Identifier: GPL-2.0-only */
21 #define SR_FS _AC(0x00006000, UL) /* Floating-point Status */
39 #define SR_FS_VS (SR_FS | SR_VS) /* Vector and Floating-Point Unit */
48 #define SR_UXL _AC(0x300000000, UL) /* XLEN mask for U-mode */
49 #define SR_UXL_32 _AC(0x100000000, UL) /* XLEN = 32 for U-mode */
50 #define SR_UXL_64 _AC(0x200000000, UL) /* XLEN = 64 for U-mode */
72 /* Exception cause high bit - is an interrupt if set */
73 #define CAUSE_IRQ_FLAG (_AC(1, UL) << (__riscv_xlen - 1))
76 #define IRQ_S_SOFT 1
87 #define IRQ_LOCAL_MAX (IRQ_PMU_OVF + 1)
88 #define IRQ_LOCAL_MASK GENMASK((IRQ_LOCAL_MAX - 1), 0)
92 #define EXC_INST_ACCESS 1
142 #define HGATP_MODE_SV32X4 _AC(1, UL)
172 #define VSIP_TO_HVIP_SHIFT (IRQ_VS_SOFT - IRQ_S_SOFT)
173 #define VSIP_VALID_MASK ((_AC(1, UL) << IRQ_S_SOFT) | \
174 (_AC(1, UL) << IRQ_S_TIMER) | \
175 (_AC(1, UL) << IRQ_S_EXT) | \
176 (_AC(1, UL) << IRQ_PMU_OVF))
200 #define ENVCFG_STCE (_AC(1, ULL) << 63)
201 #define ENVCFG_PBMTE (_AC(1, ULL) << 62)
202 #define ENVCFG_ADUE (_AC(1, ULL) << 61)
207 #define ENVCFG_CBZE (_AC(1, UL) << 7)
208 #define ENVCFG_CBCFE (_AC(1, UL) << 6)
218 #define SMSTATEEN0_AIA_IMSIC (_ULL(1) << SMSTATEEN0_AIA_IMSIC_SHIFT)
220 #define SMSTATEEN0_AIA (_ULL(1) << SMSTATEEN0_AIA_SHIFT)
222 #define SMSTATEEN0_AIA_ISEL (_ULL(1) << SMSTATEEN0_AIA_ISEL_SHIFT)
224 #define SMSTATEEN0_HSENVCFG (_ULL(1) << SMSTATEEN0_HSENVCFG_SHIFT)
226 #define SMSTATEEN0_SSTATEEN0 (_ULL(1) << SMSTATEEN0_SSTATEEN0_SHIFT)
318 /* Supervisor-Level Window to Indirectly Accessed Registers (AIA) */
322 /* Supervisor-Level Interrupts (AIA) */
326 /* Supervisor-Level High-Half CSRs (AIA) */
359 /* Virtual Interrupts and Interrupt Priorities (H-extension with AIA) */
365 /* VS-Level Window to Indirectly Accessed Registers (H-extension with AIA) */
369 /* VS-Level Interrupts (H-extension with AIA) */
373 /* Hypervisor and VS-Level High-Half CSRs (H-extension with AIA) */
407 /* Machine-Level Window to Indirectly Accessed Registers (AIA) */
411 /* Machine-Level Interrupts (AIA) */
419 /* Machine-Level High-Half CSRs (AIA) */
432 /* Scalar Crypto Extension - Entropy */
506 __asm__ __volatile__ ("csrrw %0, " __ASM_STR(csr) ", %1"\
532 __asm__ __volatile__ ("csrrs %0, " __ASM_STR(csr) ", %1"\
549 __asm__ __volatile__ ("csrrc %0, " __ASM_STR(csr) ", %1"\